SDR weather station graph

October 18, 2024, 13:52

supercell_psycho

Hey, so I am making a weather station work on my RPI3 and I am getting confused on this. Could I have like a more in depth tutorial or maybe even better a video tutorial? Here is the link in what I’m doing. https://www.agri-vision.nl/portal/projects/25-rtl-sdr-based-weather-station-on-raspberry-pi thanks for any help I get.

supercell_psycho

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?

supercell_psycho

Sorry if I’m bugging you with questions. Just new to Linux

supercell_psycho

Oh. Pfft

supercell_psycho

Mb

supercell_psycho

And after I paste the scripts into the file directory, do I run it from python or cmd

supercell_psycho

O- oh

supercell_psycho

Welp

thunder07337

Not at all, that's why you created the crontab.

supercell_psycho

We got a tiny problem

supercell_psycho

This link dosent work anymore

supercell_psycho

It’s the link to the rest of the values

supercell_psycho

Idk if that’s necessary or not. Looks to be

supercell_psycho

I think the link on the GitHub is bugged

supercell_psycho

This a different link or the same?

thunder07337


supercell_psycho

Ok, so add that to the script also?

supercell_psycho

Oh no

supercell_psycho

Wait

supercell_psycho

That’s a separate thing

supercell_psycho

Correct?

thunder07337

Yes

supercell_psycho

Ok making sure

supercell_psycho

Alright

supercell_psycho

I think that does it

supercell_psycho

I’ll keep this open in case anything comes up

supercell_psycho

Alright, so I tried installing dash and I got this

supercell_psycho

Oop hol up

supercell_psycho


supercell_psycho

Alright, I’ll try that

supercell_psycho

Ok dash is installing

supercell_psycho

With no errors

supercell_psycho

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.

supercell_psycho

Ok

supercell_psycho

So Basicly I tried another progect, it’s this one https://www.agri-vision.nl/portal/projects/25-rtl-sdr-based-weather-station-on-raspberry-pi and seems like everything is working fine until I got an error that said “sqlite3.operationalError : unable to open database file”

supercell_psycho

When I opened the server at least

thunder07337

Did you install the "sqlite"?

supercell_psycho

From the GitHub?

supercell_psycho

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

hunter8314

its saying unable to locate package gprx-sdr