Jump to content
 

Grinkle

Members
  • Posts

    85
  • Joined

  • Last visited

Posts posted by Grinkle

  1. here is my idea for the settings sub page

    this will tell the system which pwm boards are connected

    settingssubpage1.html

     

    It's not complete yet

    the first two columns are only labels the third column (switch) tells the system if the board is present

    and the forth column is just a reminder to the owner/operator

     

    here is the data that will need to be stored

     

    settingssubdata.txt

     

    the first column is the id number of the board (0-61) used as a multiplier on the settings page

    the second column is the address of the board in hex (it is just text) to display on the settings page

    these first two columns never change

     

    the third column (true/false) tells if it should be displayed on the settings page (this is the third column from the settings sub page)

    the forth column is the forth column from the settings sub page to be displayed on the settings page

     

    I have put a couple of examples in the data file

  2. The solution is simple whatever hardware you choose

    Me being think is the problem here

    what I used to do easily I seem to have a mental block on

    I know how I would like it to work (to make it simple for everyone)

    It's not just making the hardware work but also making the user interface really easy

     

    There is other hardware that can be used but I know the RPi can run a web server and act as wireless access point (and I already had one)

  3. the button and how it operates has nothing to do with the device, browser or resolution. you just use a different style sheet

    more than one user editing the same document was tackled by windows for work groups (this is not as difficult as that)

     

    I was trying to avoid a data base for such a small amount of data (I have already been told off for using bloat ware)

    I need to know how (in what form) data is stored to help write the web pages

  4. This is something I am doing with the help of and for anyone else who is interested

    Sett up & fine tuning will be on screen with help drop downs (no counting button click under the board)

    Parts are inexpensive and mostly generic

    It's easy to assemble (mostly plugs and screw terminals)

    Hopefully basic setup can be a file download and run a wizard

     

    post-19064-0-00241000-1526316345_thumb.png

     

    Here is a basic schematic of the file system most of which I can do

    the view files bottom right are for spectators the files above them are for users

    and the set up web page will be admin only

  5. Using a browser interface is part of the point

    There are lots of examples where arduino and RPi are used together adding additional hardware to improve or increase functionality is something worth considering

    first the basic software needs to be running

     

    If you have followed this from the beginning you can see I changed my mind from having an editable file to store settings to trying to create a web page th put the data in the file

    A further addition wood be a drop down allowing the function of each channel to be chosen (simple switch, points, frog switch, variable servo movement, welding simulator, etc, etc, etc)

     

    I would like system that is ease to use

  6. how does the RPi talk to the control device (Smart phone, Tablet) without adding extra software?

     

    I am happy to be corrected but I thought I had all the parts (hardware & software)

    and was only lacking the knowledge  of how to write the code that glues them all together

    It seams I don't gain anything if I change the hardware or software to something I am not familiar with

     

    the code that I can not do, Is still the code I can not do

     

    BTW the comments here are not aimed at robin who has made some excellent suggestions

    I have/had already looked at the w3schools tutorials

    perhaps some one else can explain them to me so we can move on

  7. You are quite correct I intend to do the bit in blue l8r

     

    As I pointed out earlier my coding is terrible

    so I am sure you a right about there being an easier way to write the buttons

     

    there are some parts that i can not change

    The library file that is available to drive the hardware is in python

    python natively supports json

     

     

    JSON: JavaScript Object Notation.

    JSON is a syntax for storing and exchanging data.

     

                                w3schools

  8. I have attached two files

    In order for this to work properly both files must be saved to the same folder and the file button.txt must be renamed button.css

     

    RMweb will not allow css files to be sent so I am sending it in plain text

    This will allow you to look at it and see if it contains any malicious code

     

    When the files are downloaded and the file renamed open the button7.html file

     

    It will open a tab in your browser and display 8 buttons (there should be 2 columns of 4 buttons with blue backgrounds)

     

    you should see a number at the bottom this number will change as you click the buttons (try it)

     

    the number is the data that needs to be stored in a data file so the program know's the position for the servo's

    this should also be read at startup so the buttons don't go back to main every time you open the page

     

    button7.html

    button.txt

×
×
  • Create New...