Forum Replies Created
-
AuthorPosts
-
jhaug40ParticipantPeter, I had a look at GitHub but for me it’s just too much hassle to get into it. I’m a user having no clue about programming and it’s structure. I only have two points to add regarding your instructions:
1) Setup a Raspberry Pi To Intercept PWS Information (via Access Point)
“Do not enable the WiFi interface by providing a wpa_supplicant.conf file but do enable ssh. You can now ssh into the Pi via the ethernet network and contiue the setup process.” That way you have to connect the Pi Zero to a monitor for configuration (correct me if I’m wrong). I simply copied an empty ssh file into root and was able to ssh into the Pi. As most users might need an HDMI adapter for the Zero this could ease the process.
2) Installating a Local Weather Service onto a Raspberry Pi
Step 1: When executing
pi@OSPi:~ $ curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -l
an advice was shown tosudo apt-get install -y nodejs
The instruction showssudo apt install -y nodejs
Again, I don’t know if that is relevant or not.Those instructions are well written and it was easy for me to follow them. As a result all working fine now.
Jürgen.
jhaug40ParticipantPeter, the OSPi OS is Jessie, the RPi3 running the Weather Service now is stretch.
As always your instructions and explanations make perfect sense, I do appreciate your patience. Now I can report my Weather Service is running and receiving data from my PWS. Happy now, I will report back next Thursday when I’m back from work.
I also prepared my Pi Zero W from scratch following your instructions on github. I will try to give some feedback there.
Once more, THANK YOU
Servus from Austria,
Jürgen.
jhaug40ParticipantServus Peter, I’ve done the
sudo apt-get update
andsudo apt-get upgrade
on my OSPi before I started installing the Weather Service. After thenpm install
stuck I also did arm -r weather
to delete the directory and I did reload it from github starting all over again. Finally nothing at all happened when I triednpm install
meaning that the prompt just jumped to the next line. I gave up on the OSPi and I installed the Weather Service now on another RPi3 within my network. This time I did’t dosudo apt-get update
andsudo apt-get upgrade
and I successfully installednpm
. Weather Service is up and running, but for what ever reason it doesn’t receive any data from the Pi Zero bridge. The Zero did pass the PWS data to WU before I continued to “Step 4: Configure the Intercept (Port Forwarding)”. I had a typo inserting the <Weather Service IP:PORT> so I maybe that caused troubles? I just redid thesudo iptables -t nat -A PREROUTING -m physdev --physdev-in wlan0 -s <PWS IP> -p tcp --dport 80 -j DNAT --to-destination <Weather Service IP:PORT>
with the correct values but it doesn’t forward the PWS data to the Weather Service now.Attachments:
jhaug40ParticipantI tried to install nvm to get the newest version, but no success there either.
jhaug40Participant@Peter, I’m trying now to install Weather Service on my OSPi. When I want to “npm install” it always gets stuck – please see below:
Attachments:
jhaug40ParticipantJust another thought: How about installing the Weather Service on the Pi Zero? I don’t know if it then could be usable for all OpenSprinkler, not only the Pi Versions? Could be beneficial for even more users…
jhaug40ParticipantWater Level seems to work now. I had removed the location because I thought it’s not needed. I added it now again and the Water Level is close to the scale calculation. When I enter a location the close by weather information is shown in the App. Does this weather also influence the scale calculation?
Work in progress is to run Weather Service permanently and to configure the NAS auto-start using “upstart”.
jhaug40ParticipantGood morning, I realized the Water Level is stuck at 136%. That is for the last 14hrs where the weather has changed significantly. I checked the Weather Service on my NAS and it was stopped. Whenever I close the PuttY Session it stops. How to set it up to run permanently? I also have issues to get upstart run.
jhaug40ParticipantPeter, never done this on github before. I will do my best to give a proper feedback. I’m very happy it is running now. I have no clue what I’ve done but for me the result counts. 😉 Thank you very much for your support, I really appreciate it.
Jürgen.
jhaug40ParticipantI found a syno-upstarter. Hope that works…
jhaug40ParticipantAll copied. Once the auto-start of Weather Service is configured on my NAS I will format the Pi Zero SD and follow step by step your instructions. Any feedback here or somewhere else?
jhaug40ParticipantOne more, sorry. Is all data stored permanently on my NAS and how to clean it up in case it’s getting too much?
jhaug40ParticipantOf course I forgot to enter the password. Now it seems to work. Is there any way to check if the correct PWS data is used by my OSPi?
jhaug40ParticipantPeter, I get the following page where I set IP:PORT of the Weather Service. But it seems not to store it. If I call it again it shows weather.opensprinkler.com I also checked the App and it still doesn’t show my PWS data.
Attachments:
jhaug40ParticipantHi Peter, just one more question before I start from scratch to test your setup guide: How can I setup my OSpi to make use of this Weather Service?
jhaug40Participant&scale=106&rd=-1&tz=56&sunrise=353&sunset=1316&eip=167772185&rawData={“h”:28.26,”p”:0,”t”:60.3,”raining”:0}
jhaug40ParticipantFinally I will start from scratch to follow your new instructions step by step. I will do this tomorrow and I will keep you posted.
Jürgen.
jhaug40ParticipantNext step is to redirect the OSPi to take the weather data from my NAS. I also will try to get the auto-start Weather Service to work in case of future updates of the NAS OS.
jhaug40ParticipantGood morning Peter, it works!
When I followed your link for “Using the Raspberry Pi as an access point to share an internet connection (bridge)”, towards the end it tells you “The access point setup is almost the same as that shown in the previous section. Follow all the instructions in the Configuring the access point host software (hostapd) section above to set up the hostapd.conf file and the system location, but add bridge=br0 below the interface=wlan0 line, and remove or comment out the driver line. The passphrase must be between 8 and 64 characters long.” Following this it includes uncommnenting the line net.ipv4.ip_forward=1. But it’s not straight forward and I will have a look at your documentation and instructions once I prepared our pool today. 🙂
I just checked my LAN connections on my router to identify the PWS IP and edited your command line above. After npm start I got the following:
Attachments:
jhaug40ParticipantPeter, appreciate your help – DANKE
You can see my PWS as ISTEIERM133 on the WU. It’s currently sending data. I do confirm it’s runnung through the Pi Zero. I did’nt setup auto-start as my Synology runs 24/7 and is connected to an USV. I will continue tomorrow as I have to leave now.
All the best, Jürgen.
jhaug40Participantis it just “npm stop” to kill it?
jhaug40ParticipantThe output of http://10.0.0.38:3000/weather1.py?loc=50,1&wto=%22h%22:100,%22t%22:100,%22r%22:100,%22bh%22:70,%22bt%22:59,%22br%22:0 is
&scale=100&rd=-1&tz=56&sunrise=354&sunset=1315&eip=167772185&rawData={“h”:null,”p”:null,”t”:null,”raining”:0}
I’m not sure if the fact we use degree Celsius here has an influence or it’s not working.
jhaug40ParticipantIf I am correct there should be some output now on 10.0.0.38:3000 <Weather Service IP:Port> But all I get is a white page with “OpenSprinkler Weather Service v1.0.3”
Do I need to keep the <> or just the plain 10.0.0.38:3000?
jhaug40ParticipantHi Peter, I will try this out in a minute.
-
AuthorPosts