Author Topic: WiFiLogger - Connect your Davis console directly to the Internet via WiFi  (Read 109536 times)

0 Members and 3 Guests are viewing this topic.

Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #500 on: September 08, 2018, 08:16:19 AM »
Very nice with the Weather34 template:   http://www.actulife.com/pws

I like this  \:D/


Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #501 on: September 08, 2018, 09:50:06 AM »
Quote
Very nice with the Weather34 template:   http://www.actulife.com/pws

I like this  \:D/

Looking good!

Enjoy,
Paul

Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #502 on: September 08, 2018, 10:26:58 AM »
ok - next challenge.  I'm trying to add a webcam image (from Arlo).   I copy/modified a python script to take a snapshot, scheduled this with Windows task manager to put in a dropbox folder that syncs to the web.  My webcam image is inserted into webcamsmall.php in the below text, but it doesn't work, any ideas why?  I'm very "old school" with html and don't understand php.

<img src="https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg?version=<?php echo filemtime("https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg");?>" alt="weathercam" class="webcam">

Please note, the current web cam image doesn't look very nice since my Arlo is charging. 

I have a feeling that maybe the dimensions of my webcam image are the problem, but I don't have an easy way to resize. 

Offline bchwdlks

  • Senior Contributor
  • ****
  • Posts: 196
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #503 on: September 08, 2018, 01:13:34 PM »
ok - next challenge.  I'm trying to add a webcam image (from Arlo).   I copy/modified a python script to take a snapshot, scheduled this with Windows task manager to put in a dropbox folder that syncs to the web.  My webcam image is inserted into webcamsmall.php in the below text, but it doesn't work, any ideas why?  I'm very "old school" with html and don't understand php.

<img src="https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg?version=<?php echo filemtime("https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg");?>" alt="weathercam" class="webcam">

Please note, the current web cam image doesn't look very nice since my Arlo is charging. 

I have a feeling that maybe the dimensions of my webcam image are the problem, but I don't have an easy way to resize.

You should be able to resize by running an ImageMagik command on your image before you drop it into the Dropbox folder.

Offline ANPweather

  • Contributor
  • ***
  • Posts: 134
    • Anthem North Parkside, AZ
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #504 on: September 08, 2018, 02:21:55 PM »
ok - next challenge.  I'm trying to add a webcam image (from Arlo).   I copy/modified a python script to take a snapshot, scheduled this with Windows task manager to put in a dropbox folder that syncs to the web.  My webcam image is inserted into webcamsmall.php in the below text, but it doesn't work, any ideas why?  I'm very "old school" with html and don't understand php.

<img src="https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg?version=<?php echo filemtime("https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg");?>" alt="weathercam" class="webcam">

Please note, the current web cam image doesn't look very nice since my Arlo is charging. 

I have a feeling that maybe the dimensions of my webcam image are the problem, but I don't have an easy way to resize.

I had a similar problem. Your link returns a web page rather than just an image. Try this instead:
https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg?raw=1

Davis Vantage Vue, Davis Pro 2 Console with Wifi Logger
Weather Display software
WU: KAZNEWRI17
PWS: ANTHEMNP
CWOP: EW7526

Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #505 on: September 08, 2018, 02:44:57 PM »
still doesn't work - I tried multiple times, but is this correct?

<img src="https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg?raw=1?php echo filemtime("https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg");?>" alt="weathercam" class="webcam">


does the word "version" still need to be there?

Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #506 on: September 08, 2018, 03:23:36 PM »
still doesn't work - I tried multiple times, but is this correct?

<img src="https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg?raw=1?php echo filemtime("https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg");?>" alt="weathercam" class="webcam">

does the word "version" still need to be there?

or maybe this?

<img src="https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg?raw=1?php echo filemtime("https://www.dropbox.com/s/3cwuo5dbb6me4jj/snapshot.jpg?raw=1");?>" alt="weathercam" class="webcam">

I can't get any image to show.... no matter what even if I get rid of the php stuff.

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #507 on: September 08, 2018, 03:49:04 PM »
is this your web cam image in my demo here ?? if so just replace the webcamsmall with zip attached all i did was remove the filemtime so you may get problems browser image cache . hence it had a filemtime script .brian




Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #508 on: September 08, 2018, 04:03:05 PM »
yes, that's my image, but it still doesn't work for me.  I'd like to see it "inline" like in your image, but not sure how to do this.  I was selecting webcam from the "Extras" under user preferences.

Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #509 on: September 08, 2018, 04:30:19 PM »
I see now.   I can replace the cumulus indoor (due to WFL, temp isn't accurate anyway) with the webcam.  The webcam link under "Extras" doesn't work, but that doesn't matter.   Thanks!

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #510 on: September 08, 2018, 04:32:45 PM »
ok if your using the zip i attached earlier go in to setup screen ..ps lets stop hijacking this thread this is not a wifilogger issue.

below select webcamsmall


Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #511 on: September 09, 2018, 09:26:34 AM »
I apologize in advance for one last hijack of this thread...

This Weather34 template renders very nicely on Apple Watch using the free watch app “Webabit”

Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #512 on: September 13, 2018, 07:34:54 AM »
This weekend I'll have the first major test of my new weatherstation  as the remnants of hurricane Florence pass by my home (near Charlotte, NC).   I have a whole house generator and ups backup for my server/computer/console, but my past experience is that my cable internet connection only lasts for about an hour after the power goes off.   I'd like to keep broadcasting the weather data to WU and my new website, but I'm wondering if there is a break in internet connection, will WIFI logger automatically transmit all of the data it has collected while the internet is down, or will these "packets" be lost as far as WU is concerned?

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 733
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #513 on: September 13, 2018, 12:59:40 PM »
This weekend I'll have the first major test of my new weatherstation  as the remnants of hurricane Florence pass by my home (near Charlotte, NC).   I have a whole house generator and ups backup for my server/computer/console, but my past experience is that my cable internet connection only lasts for about an hour after the power goes off.   I'd like to keep broadcasting the weather data to WU and my new website, but I'm wondering if there is a break in internet connection, will WIFI logger automatically transmit all of the data it has collected while the internet is down, or will these "packets" be lost as far as WU is concerned?

At this moment WU has not such option. WFL is sending current data. Read from console -> send to WU in same time (up to 5s tolerant).
This option what you ask is called "catch up". First thing to do is to make option to export archive records as a current value.
When new arch. record will appear then WFL will take it and send to WU, PWS etc. using statistical arch. vaules.
When this option will be done, then next to do is "catch up".
To send arch. you can use only FTP file, or WL.COM.

WFL has special memory which is not erase while rebooting. This is the place to save last export date.
This is volatile memory, when power goes down in console, catch up time will be erased. So it won't be perfect.
Original IP logger is asking server first what was the last archive.
WFL will keep it as long as power is up, but WU is not serving such info, so after power restore this info will disappear and WFL start from current records.

Catch up data will come from archive records. Current data will be not stored in RAM.
PWS probably don't accept old data. I need to test it, but I think PWS is storing data with own server time.
« Last Edit: September 13, 2018, 01:03:02 PM by WiFiLogger »

Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #514 on: September 13, 2018, 04:46:37 PM »
so I’m not sure I understand - currently there’s no way to update WU (for year to date, etc. charting) if say 5 inches of rain was missed due to internet outage?

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 733
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #515 on: September 13, 2018, 05:03:45 PM »
so I’m not sure I understand - currently there’s no way to update WU (for year to date, etc. charting) if say 5 inches of rain was missed due to internet outage?

Now WFL is transmitting current data when it can.
WU takes two rain values: day rain and hour rain. If WFL will be lack of the Internet for 24h WU will miss that rain.


Offline blacklistedcard

  • Member
  • *
  • Posts: 44
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #516 on: September 13, 2018, 05:12:10 PM »
I'm getting the spikes too on weather underground.   

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 733
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #517 on: September 13, 2018, 05:16:46 PM »
I'm getting the spikes too on weather underground.

Try same thing. Go to SETUP|WiFi Setup and set NTP interval to 0 to disable it.
Please let me know if it help you as well.
I think I have repaired that issue, but I am preparing quit big update and I haven't finished it yet. Next week.
It will be:
- MQTT
- weathercloud.net

Offline blacklistedcard

  • Member
  • *
  • Posts: 44
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #518 on: September 13, 2018, 05:18:33 PM »
Ok...  Right now I have it going to my raspberry pi that is a ntp gps pps time server.   


Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 733
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #519 on: September 13, 2018, 05:28:53 PM »
Ok...  Right now I have it going to my raspberry pi that is a ntp gps pps time server.   

I think problem is when NTP is renew, it's updating UTC time, then is recalculated to console local time.
Spikes are data shifted in time. UTC +/- Time zone +/- summer time.
When you disable NTP in WFL, then it will stop updating internal WFL timers UTC and Local.
Please check it. That will help to solve this problem.

Offline redlynr

  • Senior Member
  • **
  • Posts: 52
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #520 on: September 13, 2018, 05:30:47 PM »
so I’m not sure I understand - currently there’s no way to update WU (for year to date, etc. charting) if say 5 inches of rain was missed due to internet outage?

Now WFL is transmitting current data when it can.
WU takes two rain values: day rain and hour rain. If WFL will be lack of the Internet for 24h WU will miss that rain.

Ok - so as long as I have power, and the outage is less than a day, there will be no loss of rainfall?  That’s nice!

Offline WiFiLogger

  • Forecaster
  • *****
  • Posts: 733
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #521 on: September 13, 2018, 05:40:05 PM »
so I’m not sure I understand - currently there’s no way to update WU (for year to date, etc. charting) if say 5 inches of rain was missed due to internet outage?

Now WFL is transmitting current data when it can.
WU takes two rain values: day rain and hour rain. If WFL will be lack of the Internet for 24h WU will miss that rain.

Ok - so as long as I have power, and the outage is less than a day, there will be no loss of rainfall?  That’s nice!

Console is always gives rain as daily or 24h. It is cleared at midnight or at 9 am. So when there was a rain at 10 am this value will be send with every transmission to WU. It will change when it will rise, or be cleared.
Arch. records have rain in intervals. We will check what is better for WU.
- daily rain
- rain from arch. rec. + catch up

Offline blacklistedcard

  • Member
  • *
  • Posts: 44
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #522 on: September 15, 2018, 03:50:33 PM »
Ok...  Right now I have it going to my raspberry pi that is a ntp gps pps time server.   

I think problem is when NTP is renew, it's updating UTC time, then is recalculated to console local time.
Spikes are data shifted in time. UTC +/- Time zone +/- summer time.
When you disable NTP in WFL, then it will stop updating internal WFL timers UTC and Local.
Please check it. That will help to solve this problem.

Confirming that setting the value of zero fixes the problem....


Offline ocala

  • Forecaster
  • *****
  • Posts: 4383
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #523 on: September 16, 2018, 08:36:30 AM »
so I’m not sure I understand - currently there’s no way to update WU (for year to date, etc. charting) if say 5 inches of rain was missed due to internet outage?

Now WFL is transmitting current data when it can.
WU takes two rain values: day rain and hour rain. If WFL will be lack of the Internet for 24h WU will miss that rain.

Ok - so as long as I have power, and the outage is less than a day, there will be no loss of rainfall?  That’s nice!
Let me also add that with battery back power it will still keep logging data. I'm not sure of the days but the shorter archive interval you have the quicker the data builds up. Example a 1 minute interval will fill up the memory faster then say a 10 minute interval. The exact days are somewhere in this thread somewhere.
The blues had a baby and they named it Rock & Roll

Offline Lars_Olsson

  • Member
  • *
  • Posts: 47
Re: WiFiLogger - Connect your Davis console directly to the Internet via WiFi
« Reply #524 on: September 18, 2018, 09:43:24 AM »
Is the .bin supposed to be used as well? My setup menu doesn't allow me to pick a file for Firmware Update anymore.

(Hint for exportfile. Don't use the same separator inside bracket-values as separator used to separate different items.)

 

anything