Recent Posts

Pages: 1 ... 8 9 [10]
91
WeatherCat General Discussion / Re: AppleScript - Help needed ...
« Last post by wurzelmac on October 27, 2018, 08:30:02 AM »
Dear Edouard and scripters  [computer],

after taking some time to dive into AppleScript a bit deeper and using Dr. Google to look around a bit on the web i found the Introduction to AppleScript Language Guide and here is what I need.  :)
So the script I am running at the moment is working and doing what I want so far:

Code: [Select]
set msg to do shell script "/usr/local/bin/python2.7 /Users/reinhard/schnee_client.py"

set height to 2030 #height of sensor above ground

considering case
try
set x to msg as number
set x to height - x
#resetting to zero to avoid negative numbers
if x is less than 0 then
set x to 0
end if
set snow_cm to x
#converting from mm to cm
set snow_cm to snow_cm / 10
#rounding to nearest cm
set quantum to 0.5
set snow_cm to (round snow_cm / quantum) * quantum
set t to (time string of (current date))
#resetting to zero to force floating graphdraw beginning at 0
#but leaving gaugedraw with a true daily Hi Lo value till short before midnight
if t is greater than "23:59:00" and t is less than "23:59:59" then
set snow_cm to 0
end if
return snow_cm
end try
end considering
92
I'll have to get back to your questions tomorrow.

Would be great, Edouard! Thanks for taking the time for a reply!
93
Dear Reinhard and WeatherCat scripters,

Sorry, but today was the day I set aside to wash and wax our 2000 Buick Century: Coquette.  I started before 10am and didn't finish until after 4pm.  As a result I'm rather worn out!  I'll have to get back to your questions tomorrow.

Cheers, Edouard
94
General Weather Discussion / Re: VP2 Humidity sensor problem
« Last post by Randall75 on October 26, 2018, 11:26:42 PM »
Hi Mark thanks for the reply
95
WeatherCat Feature Requests / Re: weatherflow Smart Weather
« Last post by meteo-thenioux on October 26, 2018, 08:01:05 PM »
 [sun2]
this station is wonderful finally I l useful with WordPress and wd like software damage that it is not integrated in weathercat
96
WeatherCat General Discussion / Re: AppleScript - Help needed ...
« Last post by wurzelmac on October 26, 2018, 06:10:39 PM »
@ Edouard:
Sorry to bother you again after asking on how to do cm possible...  :-[
Another thing that could be possible via AppleScript is to "set" the value to zero ( "0" ) every one minute after midnight? With this trick I can force the graph to begin at zero. Possible?
Thanks in advance,
97
General Discussion / Re: Stat modification
« Last post by Weatheraardvark on October 26, 2018, 02:53:36 PM »
The page, Wim,  is one generated by Weathercat and not by the scripts on the site.   However  thank you for writing me.
98
General Discussion / Re: Stat modification
« Last post by wvdkuil on October 26, 2018, 02:52:00 PM »
For the different scripts used by the menu-links on your main site use this link
https://desmoinesweather.org/weather28/?p=88&debug

So if you use the menu for that page (with or without an iframe), the number of visits will be counted
Wim
99
General Discussion / Stat modification
« Last post by Weatheraardvark on October 26, 2018, 02:08:32 PM »
Is there a way to slip in a page tracker into the stats.html?      I am not very good at all with programming, but would like to add a ttracker script to see if it is worth it to continue to upload to my site, or to produce a secondary page with my own graphs and upload them monthly.

I used to do that, I have an equal number of parameters with excel graphs that I could use , but if I could use the template, that would be great.https://www.desmoinesweather.org/weathercat/stats.html
100
General Weather Discussion / Re: VP2 Humidity sensor problem
« Last post by mcrossley on October 26, 2018, 02:06:46 PM »
Once they have gone liked that they are usually "done".  If it was just humidity drift then you could try cleaning and recalibration.
Pages: 1 ... 8 9 [10]