I already have it working in a cmd prompt but I want to access it as a graph and/or web browser.
thunder07337
"Then a python script using Dash (https://dash.plotly.com) is used to serve the graphs to a web browser."
You must also install this, otherwise it will not work.
supercell_psycho
Ok so the stuff I put below crouton I put in dash?
thunder07337
No, but the program must be installed for the script to work.
supercell_psycho
Ok, so install the program and place the scripts into python correct?
supercell_psycho
I’m new to programming so take it with a grain of salt
supercell_psycho
Or are those just log responses
thunder07337
No, you create a file with the name ws2sqlite.py in the directory /home/pi/bin/
sudo nano /home/pi/bin/ws2sqlite.py
And you have to copy the two code blocks into it.
thunder07337
supercell_psycho
AAAAAAAAAHHHhhhhhhh ok. I belive I see where I am messing up
supercell_psycho
I can try that out when I get off work
supercell_psycho
You’d prob be in bed by 0 hours your time but I’ll keep ya updated on questions
thunder07337
Yes, as I've got a bit of work to do tomorrow, I'll get some sleep.
But please don't ping me, I'll check my smartphone when I have time. And anyone who has the time and the knowledge can answer.
supercell_psycho
Ofc have a good night
supercell_psycho
Alright, so I do have another question, do I put the entire script under one tag in crouton or do they have to be on separate tags
thunder07337
Since only 1 script "ws2sqlite.py" is entered in the crontab, everything must be entered in this one script.
supercell_psycho
IncluDing the timing?
supercell_psycho
Like for example
supercell_psycho
Is it # weather station logger
0,10,20,30,40,50 /usr/local/bin/rtl_433 -p 69 -f 868M -F json -R 155 -T 90 -E quit | /usr/bin/python /home/pi/bin/ws2sqlite.py >> /var/log/temperature/ws_error.log
thunder07337
No, this is only entered in the Crontab.
supercell_psycho
Ok so is it under only one # or is there a # for each line
thunder07337
Under #
in one line
supercell_psycho
Ah. Ok
supercell_psycho
So I was doing that part right
supercell_psycho
So how do I create the file and paste the scripts to it?
Alright, so I inputted in the cron filesystem double check if this is correct if you don’t mind
supercell_psycho
thunder07337
I see that your user is not called "Pi". So you would have to change that to the name your user has. And then the script is also in the wrong directory. So move the script or create a new one in the correct directory.
So I am offline.
supercell_psycho
Alright
supercell_psycho
I “think” I got it from here
supercell_psycho
Ok well, nevermind
supercell_psycho
Dash isn’t working properly
hunter8314
In trying to do this aswell
supercell_psycho
YEES
supercell_psycho
PROGRESS
supercell_psycho
supercell_psycho
Ok
supercell_psycho
I give up on that
supercell_psycho
I’m going to try weewx
supercell_psycho
And could use some help
supercell_psycho
Hey bro, you know coding and stuff?
supercell_psycho
Ok so, this still isn’t working for me
thunder07337
"isn't working for me" is not an error description. If you want help, you have to write what is not working and what error message you are getting.
This is the file from the GitHub along with the contents
supercell_psycho
This is the scripts I copied over
thunder07337
To create a database, you must install a corresponding program. With Windows, you also have to install programs if you don't want to use the Edge browser, for example, you have to install another one. It's the same with Linux. If you want a database, you need sqlite, mariadb or one of the many other programs for databases.
hunter8314
naw
hunter8314
im new to all this
hunter8314
but im trint to install the sdr rtl software in the rpi3 and im not able to