[weewx-user] Re: Can weeWX link with an SQLite3 Database?

2019-01-20 Thread steepleian
Kelly

I am also looking to adapt the Weatherflow driver to do the same thing as I am 
also beta testing the same device.

I have installed the driver but it rufuses to start. There is absolutely 
nothing in the logs to show why. I was wondering if you have had a similar 
experience?

My installation is DEB on a Pi3+

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Integration with Alexa

2019-01-20 Thread Tim Hart
Hi Vince - do you need ssl enabled on your weewx webserver?  I get a 'Error 
fetching the requested URL' error message when attempting to add my public 
url (http://normanclanger.dyndns-home.com:8081/html/weewx/RSS/weewx_rss.xml) 
to a Flash skill.

thanks

Tim

On Tuesday, 10 January 2017 01:30:04 UTC, vince wrote:
>
> On Monday, January 9, 2017 at 5:15:29 PM UTC-8, Steve Dulmes wrote:
>>
>> Very cool. This is what I'd like to do too. Thanks.
>
>
> Well at a minimum, you'll need to have a developer key at amazon 
> associated with the profile your Echo uses, so you can set all that stuff 
> up now and fiddle with it to get your feet wet.  Teach it how to answer 
> with something to a question you cook up.  Teach it how to do a RSS Flash 
> read ala the link I posted.   It takes a little time to understand the 
> moving parts.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] IWDL - Vorhersage

2019-01-20 Thread Kalli
Hallo
seit einiger zeit geht die Wettervorhersage bei IWDL nicht mehr.
hat sich was geändert.

mfg. Kalli

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-20 Thread Patrick Tranchant
hello PAT & Gary
I done a test with the driver; I modified this line:

while time.time() - start_time <= self.interval:
wind_start_time = time.time()
*#self.reset_wind()*
while time.time() - wind_start_time <= self.wind_interval:

this prevents zeroing (I think); can it help to find the problem?


LOOP:   2019-01-20 16:05:29 CET (1547996729) altimeter: 30.0136408145, 
appTemp: 67.4737950549, barometer: 30.0117473398, cloudbase: 6045.30758337, 
dateTime: 1547996729, dewpoint: 44.468104711, heatindex: 68.8443554395, 
humidex: 68.8443554395, maxSolarRad: None, outHumidity: 41.4677757987, 
outTemp: 68.8443554395, pressure: 29.4786301409, rain: 0.0, rainRate: 
0.044, soilTemp1: 62.6, usUnits: 1, windchill: 68.8443554395, windDir: 
315.0, windGust: 0.149265376281, *windSpeed: 0.149265376281*
REC:2019-01-20 16:05:00 CET (1547996700) altimeter: 30.0131035678, 
appTemp: 67.4449322011, barometer: 30.0111992984, cloudbase: 6085.59369006, 
dateTime: 1547996700.0, dewpoint: 44.2998049439, ET: None, heatindex: 
68.8533145418, humidex: 68.8533145418, interval: 5, maxSolarRad: None, 
outHumidity: 41.1899255979, outTemp: 68.8533145418, pressure: 
29.4781007907, rain: 0.011, rainRate: 0.044, soilTemp1: 61.3616, usUnits: 
1, windchill: 68.8533145418, windDir: 273.388806595, windGust: 
0.149265376281, windGustDir: 273.388806595, windrun: 0.0124387813568, 
*windSpeed: 
0.149265376281*
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
unknown value 0.0
Measuring wind direction for 5 seconds...
unknown value 0.0
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
unknown value 0.0
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
LOOP:   2019-01-20 16:06:30 CET (1547996790) altimeter: 30.0126782469, 
appTemp: 67.3085148401, barometer: 30.010927697, cloudbase: 6034.88556661, 
dateTime: 1547996790, dewpoint: 44.3706160199, heatindex: 68.7010098746, 
humidex: 68.7010098746, maxSolarRad: None, outHumidity: 41.5171608252, 
outTemp: 68.7010098746, pressure: 29.4776817213, rain: 0.0, rainRate: 
0.044, soilTemp1: 62.4866, usUnits: 1, windchill: 68.7010098746, windDir: 
315.0, windGust: 0.149265376281, *windSpeed: 0.149265376281*
Measuring wind direction for 5 seconds...

the data stay at the same value ( just for one passage front of the magnet)

Patrick


On Saturday, January 19, 2019 at 8:41:10 PM UTC+1, Patrick Tranchant wrote:
>
> it seems that the information that comes from buttons 5 and 6, are not 
> taken into account.
> I dry
> Patrick
>
> On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>>
>> hello I am a newbie from France ( sorry for my english )
>>
>> I want to use weewx on a raspberry with a weather station built by myself 
>> (view on Magpi)
>> I don't see my station on your website to configure :
>>
>> Weather Station Hardware Comparison: I don't found my weather station.
>> Do you have a solution or how to configure Weewx
>>
>> thank you for your help
>>
>> Patrick
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: use Weewx on raspberry

2019-01-20 Thread Patrick Tranchant
an other test:

 def genPackets(self):
""" Generate measurement packets. """
global temp_probe
while True:
start_time = time.time()
while time.time() - start_time <= self.interval:
wind_start_time = time.time()
   * print(self.wind_count)*
self.reset_wind()
while time.time()

at the first passage le count is "1" after the second passage in the LOOP 
,the counter is "0", and the anemometer runs all time. 

pi@raspberrypi:/usr/share/weewx/user $ sudo /usr/share/weewx/weewxd 
/etc/weewx/weewx.conf
1
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
unknown value 0.0
0
Measuring wind direction for 5 seconds...
unknown value 0.0
0
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
0
Measuring wind direction for 5 seconds...
LOOP:   2019-01-20 16:16:33 CET (1547997393) altimeter: 30.0196782586, 
appTemp: 67.2102454284, barometer: 30.0180956338, cloudbase: 6041.88216946, 
dateTime: 1547997393, dewpoint: 44.1964855365, heatindex: 68.5576644438, 
humidex: 68.5576644438, maxSolarRad: None, outHumidity: 41.445301381, 
outTemp: 68.5576644438, pressure: 29.4845788474, rain: 0.011, rainRate: 
0.044, soilTemp1: 62.4866, usUnits: 1, windchill: 68.5576644438, windDir: 
315.0, windGust: 0.0, windSpeed: 0.0
0

Patrick



On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>
> hello I am a newbie from France ( sorry for my english )
>
> I want to use weewx on a raspberry with a weather station built by myself 
> (view on Magpi)
> I don't see my station on your website to configure :
>
> Weather Station Hardware Comparison: I don't found my weather station.
> Do you have a solution or how to configure Weewx
>
> thank you for your help
>
> Patrick
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Belchertown DarkSky Alerts

2019-01-20 Thread G Hammer
Pat,

I'm getting two alerts for the Winter Storm Warning and two for the Wind 
Chill Advisory.
They are different NWS alerts for each and one of each is not for my area.
This one is for my area: 
https:
//alerts.weather.gov/cap/wwacapget.php?x=MA125CE0EFA160.WinterStormWarning.125CE0FD7C40MA.BOXWSWBOX.1d5f2590948cc9500f4756d1991b8628

This one is not:
https:
//alerts.weather.gov/cap/wwacapget.php?x=MA125CE0EFA160.WinterStormWarning.125CE0FD7C40MA.BOXWSWBOX.6529073c32940990cc8d6e52d9e8aa92


I looked through the DarkSky API alerts but don't see why it would give two 
regions alerts.
Any ideas?
On Friday, December 28, 2018 at 9:03:04 AM UTC-5, Pat wrote:
>
> Wow that is a lot of alerts!
>
> On Friday, December 28, 2018 at 8:59:30 AM UTC-5, kutz...@gmail.com wrote:
>>
>> Pat, Nice addition!!
>>
>> It seems to be working great for me. We're in the middle of a major 
>> rainstorm - we currently have an embarrassment of alerts! See the attached 
>> jpg.
>>
>> phil
>>
>> On Thursday, December 27, 2018 at 9:11:04 PM UTC-5, Pat wrote:
>>>
>>> I've also just updates the styles.css to have the correct spacing for 
>>> the alert area. Be sure to grab a copy of that and restart weewx
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Belchertown DarkSky Alerts

2019-01-20 Thread Pat
I'm seeing the same thing on my site. 

This isn't a skin problem though. 

My guess is we're near the county lines and DarkSky is showing alerts for 
both?

Looking at your darksky_forecast.json (yes, I remembered your site), and 
running that data through https://jsonformatter.org you can see near the 
bottom the "alerts": [ section shows the 8 alerts on your website 
currently. 

So the skin is just showing the data that DarkSky is providing. 

You could reach out to DarkSky to see what they say?

Pat

On Sunday, January 20, 2019 at 10:55:36 AM UTC-5, G Hammer wrote:
>
> Pat,
>
> I'm getting two alerts for the Winter Storm Warning and two for the Wind 
> Chill Advisory.
> They are different NWS alerts for each and one of each is not for my area.
> This one is for my area: 
> https://
> alerts.weather.gov/cap/wwacapget.php?x=MA125CE0EFA160.WinterStormWarning.125CE0FD7C40MA.BOXWSWBOX.1d5f2590948cc9500f4756d1991b8628
>
> This one is not:
> https://
> alerts.weather.gov/cap/wwacapget.php?x=MA125CE0EFA160.WinterStormWarning.125CE0FD7C40MA.BOXWSWBOX.6529073c32940990cc8d6e52d9e8aa92
>
>
> I looked through the DarkSky API alerts but don't see why it would give 
> two regions alerts.
> Any ideas?
> On Friday, December 28, 2018 at 9:03:04 AM UTC-5, Pat wrote:
>>
>> Wow that is a lot of alerts!
>>
>> On Friday, December 28, 2018 at 8:59:30 AM UTC-5, kutz...@gmail.com 
>> wrote:
>>>
>>> Pat, Nice addition!!
>>>
>>> It seems to be working great for me. We're in the middle of a major 
>>> rainstorm - we currently have an embarrassment of alerts! See the attached 
>>> jpg.
>>>
>>> phil
>>>
>>> On Thursday, December 27, 2018 at 9:11:04 PM UTC-5, Pat wrote:

 I've also just updates the styles.css to have the correct spacing for 
 the alert area. Be sure to grab a copy of that and restart weewx

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Weewx without driver

2019-01-20 Thread Andrej B.
Hey there!

I plan to read, store and generating graphs for voltage. ADC is ADS1115 and 
database is MySQL. Can Weewx work without hardware driver? 
I just need to point weewx to already prepared data from database and next 
use weewx as usually (plotting, statistics etc.). 
I need small how-to for this.

DB SQL sample is attached.

Many Thanks!

Andrej

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- phpMyAdmin SQL Dump
-- version 4.6.6deb4
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 20, 2019 at 06:32 PM
-- Server version: 10.1.37-MariaDB-0+deb9u1
-- PHP Version: 7.0.33-0+deb9u1

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `DataLogger`
--

-- 

--
-- Table structure for table `ADS1115Table`
--

CREATE TABLE `ADS1115Table` (
  `id` int(11) NOT NULL,
  `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deviceid` int(11) NOT NULL,
  `channel0_voltage` float NOT NULL,
  `channel0_raw` int(11) NOT NULL,
  `channel1_voltage` float NOT NULL,
  `channel1_raw` int(11) NOT NULL,
  `channel2_voltage` float NOT NULL,
  `channel2_raw` int(11) NOT NULL,
  `channel3_voltage` float NOT NULL,
  `channel3_raw` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ADS1115Table`
--

INSERT INTO `ADS1115Table` (`id`, `timestamp`, `deviceid`, `channel0_voltage`, `channel0_raw`, `channel1_voltage`, `channel1_raw`, `channel2_voltage`, `channel2_raw`, `channel3_voltage`, `channel3_raw`) VALUES
(372, '2019-01-16 19:51:25', 0, 1.203, 3224, 1.208, 3143, 1.201, 3234, 1.213, 3145),
(373, '2019-01-16 19:51:30', 0, 1.192, 3208, 1.205, 3226, 1.216, 3148, 1.158, 3322),
(374, '2019-01-16 19:51:35', 0, 1.2, 3170, 1.198, 3233, 1.221, 3149, 1.145, 3317),
(375, '2019-01-16 19:51:40', 0, 1.19, 3215, 1.207, 3235, 1.216, 3145, 1.159, 3317),
(376, '2019-01-16 19:51:45', 0, 1.196, 3197, 1.202, 3224, 1.217, 3148, 1.161, 3313),
(377, '2019-01-16 19:51:50', 0, 1.175, 3270, 1.221, 3180, 1.165, 3254, 1.23, 3193);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `ADS1115Table`
--
ALTER TABLE `ADS1115Table`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `ADS1115Table`
--
ALTER TABLE `ADS1115Table`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=627;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;


Re: [weewx-user] Direct reading day rain from the console

2019-01-20 Thread Christian Nimmervoll

Top! That was a solution that I have been looking for a long time. $ 
current.dayRain Now I can also edit rain values ​​on the console and the 
corrections then flow into the software. Is it also possible - with the 
value $ current.dayRain also to correct the rain graphics. So to take the 
corrected value in the chart? 
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Adding a new object in the ephem database

2019-01-20 Thread Paul Bartholdi
Dear Thommas,

Once more you impressed me a lot, such quick and well formed answer. Thanks.

Now I am afraid to say that there is still a buf, probably a typo or some
thing like that. I checked "my" additions in "extensions.py" and
"almanac.py" (and of course in "index.html.tmpl"), and believe they were
correctly done.
Just a question: where can I find the generated file
"cheetah__etc_weewx_skins_Standard_index_html_tmpl_1548001524_26_16364.py" ?

Here is the .log of the error:

reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf
for report StandardReport
cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac',
'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
'weewx.cheetahgenerator.Extras']
manager: Daily summary version is 2.0
cheetahgenerator: Generate failed with exception ''
cheetahgenerator:  Ignoring template
/etc/weewx/skins/Standard/index.html.tmpl
cheetahgenerator:  Reason: 'ephem.EllipticalBody' object is not callable
  Traceback (most recent call last):
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in
generate
  print >> _file, compiled_template
File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
1005, in __str__
  rc = getattr(self, mainMethName)()
File
"cheetah__etc_weewx_skins_Standard_index_html_tmpl_1548001524_26_16364.py",
line 2545, in respond
File
"cheetah__etc_weewx_skins_Standard_index_html_tmpl_1548001524_26_16364.py",
line 1155, in __errorCatcher156
File "", line 1, in 
File "/usr/share/weewx/weewx/almanac.py", line 355, in __getattr__
  ephem_body = _get_ephem_body(self.heavenly_body)
File "/usr/share/weewx/weewx/almanac.py", line 424, in
_get_ephem_body
  ephem_body = getattr(ephem, cap_name)()
  TypeError: 'ephem.EllipticalBody' object is not callable
cheetahgenerator: Generated 13 files for report StandardReport in 0.56
seconds
manager: Daily summary version is 2.0

Best regards, Paul


Le dim. 20 janv. 2019 à 01:28, Thomas Keffer  a écrit :

> This is a good question, and it took me a while to figure out how to work
> around the limitations of pyephem. Try this:
>
> 1. Put the following in user/extensions.py:
>
> import ephem
> eros = ephem.readdb("433
> Eros,e,10.8276,304.3222,178.8165,1.457940,0.5598795,0.22258902,71.2803,09/04.0/2017,2000,H11.16,0.46")
> ephem.Eros = eros
>
> 2. Modify the WeeWX module weewx/almanac.py so that the function
> _get_ephem_body() looks like this:
>
> def _get_ephem_body(heavenly_body):
> # The library 'ephem' refers to heavenly bodies using a capitalized
> # name. For example, the module used for 'mars' is 'ephem.Mars'.
> cap_name = heavenly_body.capitalize()
>
> # If the heavenly body is a star, or if the body does not exist, then
> an
> # exception will be raised. Be prepared to catch it.
> try:
> ephem_body = getattr(ephem, cap_name)()
> except AttributeError:
> # That didn't work. Try a star. If this doesn't work either,
> # then a KeyError exception will be raised.
> ephem_body = ephem.star(cap_name)
> except TypeError:
> ephem_body = getattr(ephem, cap_name)
>
> return ephem_body
>
> You are adding the two highlighted lines.
>
> 3. Then use this in your template:
>
> $almanac.eros.rise
>
> for when it rises, etc. (treat it just like any other planet).
>
> Double check the answer. I'm not 100% confident this will work. If it
> does, I'll add the changes for weewx/almanac.py to the code base.
>
> -tk
>
> On Sat, Jan 19, 2019 at 10:20 AM Paul Bartholdi 
> wrote:
>
>> Hi,
>>
>> I nodified a few years ago the "Standard/index.html.tmpl" to print the
>> main solar systems objects (sun, moon, Jupiter...).
>> Now I want to pint the same informations but for the minor planet Eros
>> that pass very (very relative!) the earth in the few next days.
>> This implies adding the python line:
>>
>>  eros = ephem.readdb("433
>> Eros,e,10.8276,304.3222,178.8165,1.457940,0.5598795,0.22258902,71.2803,09/04.0/2017,2000,H11.16,0.46")
>>
>> and then (in index.html.tmp) :
>>
>>
>>   Rise  :
>>   $almanac.eros.rise
>> 
>>
>> Where should I add the " eros = ephem.readdb(...) line ?   (
>> index.html.tmpl ?  almanac.py ? elsewhere ?).
>>
>> Thanks for any help/advice! Paul
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to weewx-user+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-

[weewx-user] Re: use Weewx on raspberry

2019-01-20 Thread Patrick Tranchant
I search always...

it looks like the program goes once in the loop and does not return.

modified driver for test:

  def hardware_name(self):
return self.station_hardware
# Every half-rotations, add 1 to count
def spin(self):
self.wind_count = self.wind_count + 1
 #   #loginf("incremented self.wind_count") #pour test
   * print("spin" + str(self.wind_count))*

spin1
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...
Measuring wind direction for 5 seconds...

it should show spin2, spin3 etc etc

Patrick

On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>
> hello I am a newbie from France ( sorry for my english )
>
> I want to use weewx on a raspberry with a weather station built by myself 
> (view on Magpi)
> I don't see my station on your website to configure :
>
> Weather Station Hardware Comparison: I don't found my weather station.
> Do you have a solution or how to configure Weewx
>
> thank you for your help
>
> Patrick
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Ambient Weather WS-2902A

2019-01-20 Thread Adnan Mumtaz
Hi Scott,

Received the RPi , installed the OS and installed WeeWX to test, everything 
went smooth, then started reading the links you shared, tomorrow I should 
be receiving my WS too hopefully it was held by customs  :) 

Question, the link you shared with me has prerequisites , which are 
straight but there is a link which takes 
to https://github.com/matthewwall/weewx-interceptor , so the first step of 
prerequisites should be to install weewx interceptor and then follow the 
rest in the link, I understand the RPi will sniff data via WiFi and it will 
have access to WAN using Ethernet connection, can you also share your 
website.

Thanks a lot,
Adnan

On Wednesday, 16 January 2019 01:48:06 UTC+3, Scott Grayban wrote:
>
> I use this one https://smile.amazon.com/gp/product/B06XWMQ81P/
>
> SanDisk Extreme 32GB microSDHC UHS-3 Card - SDSQXAF-032G-GN6MA
>
> On Tuesday, January 15, 2019 at 2:23:52 PM UTC-8, Adnan Mumtaz wrote:
>>
>> I am a Debian user , not a very advanced one but i have concepts, I am 
>> dowloading the RPi Debian Lite version as I wouldnt need a desktop, what 
>> size and brand SD would you recommend
>>
>> On Tuesday, 15 January 2019 22:38:12 UTC+3, Scott Grayban wrote:
>>>
>>> Sure but you shouldn't have any problems unless you don't know anything 
>>> about linux.
>>>
>>> On Tuesday, January 15, 2019 at 11:35:11 AM UTC-8, Adnan Mumtaz wrote:

 Thanks a lot, ordered it. Will need your help again if i get stuck in 
 something. So kind of you.

 Regards,
 Adnan

 On Tuesday, 15 January 2019 22:27:19 UTC+3, Scott Grayban wrote:
>
> This one 
> https://saudi.souq.com/sa-en/raspberry-pi-3-model-b+-plus-32895409/i/
>
> On Tuesday, January 15, 2019 at 11:09:11 AM UTC-8, Adnan Mumtaz wrote:
>>
>> Hi Scott,
>>
>> Bundle of thanks for sharing your hardwork, will you suggest which 
>> RPi should I buy, I can find few available in a local e-store 
>> https://saudi.souq.com/sa-en/raspberry-pi/s/?as=1
>>
>> Regards,
>> Adnan
>>
>> On Tuesday, 15 January 2019 21:37:41 UTC+3, Scott Grayban wrote:
>>>
>>> You also need to buy a Rpi from amazon or the UK Rpi store for this 
>>> to work. https://www.raspberrypi.org/
>>>
>>>
>>> On Tuesday, January 15, 2019 at 10:14:38 AM UTC-8, Adnan Mumtaz 
>>> wrote:

 Greetings from Saudi Arabia,

 I am an expat living and working in Riyadh, Saudi Arabia. I have 
 recently purchased Ambient Weather WS-2902A which I will be receiving 
 next 
 week, I have a domain and web hosting where I want to publish my 
 weather 
 using WeeWX (belchertown template). I am a systems engineer but far 
 from 
 programming since a very long time, I will appreciate if someone can 
 guide 
 me, I did search the forum and found few had issues and those who had 
 success are not publishing details.

 Awaiting positive response .

 Thank you,
 Adnan

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Ambient Weather WS-2902A

2019-01-20 Thread Adnan Mumtaz
Sorry , I was a bit confused,  I forgot with this I will make the RPi an AP 
where the station will connect to, so in that case I will install plain 
weewx and then follow your instructions and once I can see data being 
received I will work on different skins, more interested in Belchertown and 
also weather34 

On Monday, 21 January 2019 00:05:18 UTC+3, Adnan Mumtaz wrote:
>
> Hi Scott,
>
> Received the RPi , installed the OS and installed WeeWX to test, 
> everything went smooth, then started reading the links you shared, tomorrow 
> I should be receiving my WS too hopefully it was held by customs  :) 
>
> Question, the link you shared with me has prerequisites , which are 
> straight but there is a link which takes to 
> https://github.com/matthewwall/weewx-interceptor , so the first step of 
> prerequisites should be to install weewx interceptor and then follow the 
> rest in the link, I understand the RPi will sniff data via WiFi and it will 
> have access to WAN using Ethernet connection, can you also share your 
> website.
>
> Thanks a lot,
> Adnan
>
> On Wednesday, 16 January 2019 01:48:06 UTC+3, Scott Grayban wrote:
>>
>> I use this one https://smile.amazon.com/gp/product/B06XWMQ81P/
>>
>> SanDisk Extreme 32GB microSDHC UHS-3 Card - SDSQXAF-032G-GN6MA
>>
>> On Tuesday, January 15, 2019 at 2:23:52 PM UTC-8, Adnan Mumtaz wrote:
>>>
>>> I am a Debian user , not a very advanced one but i have concepts, I am 
>>> dowloading the RPi Debian Lite version as I wouldnt need a desktop, what 
>>> size and brand SD would you recommend
>>>
>>> On Tuesday, 15 January 2019 22:38:12 UTC+3, Scott Grayban wrote:

 Sure but you shouldn't have any problems unless you don't know anything 
 about linux.

 On Tuesday, January 15, 2019 at 11:35:11 AM UTC-8, Adnan Mumtaz wrote:
>
> Thanks a lot, ordered it. Will need your help again if i get stuck in 
> something. So kind of you.
>
> Regards,
> Adnan
>
> On Tuesday, 15 January 2019 22:27:19 UTC+3, Scott Grayban wrote:
>>
>> This one 
>> https://saudi.souq.com/sa-en/raspberry-pi-3-model-b+-plus-32895409/i/
>>
>> On Tuesday, January 15, 2019 at 11:09:11 AM UTC-8, Adnan Mumtaz wrote:
>>>
>>> Hi Scott,
>>>
>>> Bundle of thanks for sharing your hardwork, will you suggest which 
>>> RPi should I buy, I can find few available in a local e-store 
>>> https://saudi.souq.com/sa-en/raspberry-pi/s/?as=1
>>>
>>> Regards,
>>> Adnan
>>>
>>> On Tuesday, 15 January 2019 21:37:41 UTC+3, Scott Grayban wrote:

 You also need to buy a Rpi from amazon or the UK Rpi store for this 
 to work. https://www.raspberrypi.org/


 On Tuesday, January 15, 2019 at 10:14:38 AM UTC-8, Adnan Mumtaz 
 wrote:
>
> Greetings from Saudi Arabia,
>
> I am an expat living and working in Riyadh, Saudi Arabia. I have 
> recently purchased Ambient Weather WS-2902A which I will be receiving 
> next 
> week, I have a domain and web hosting where I want to publish my 
> weather 
> using WeeWX (belchertown template). I am a systems engineer but far 
> from 
> programming since a very long time, I will appreciate if someone can 
> guide 
> me, I did search the forum and found few had issues and those who had 
> success are not publishing details.
>
> Awaiting positive response .
>
> Thank you,
> Adnan
>


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Ambient Weather WS-2902A

2019-01-20 Thread Scott Grayban
This is my site http://www.nettletondistrict.com/Nettleton/

On Sunday, January 20, 2019 at 2:01:00 PM UTC-8, Adnan Mumtaz wrote:
>
> Sorry , I was a bit confused,  I forgot with this I will make the RPi an 
> AP where the station will connect to, so in that case I will install plain 
> weewx and then follow your instructions and once I can see data being 
> received I will work on different skins, more interested in Belchertown and 
> also weather34 
>
> On Monday, 21 January 2019 00:05:18 UTC+3, Adnan Mumtaz wrote:
>>
>> Hi Scott,
>>
>> Received the RPi , installed the OS and installed WeeWX to test, 
>> everything went smooth, then started reading the links you shared, tomorrow 
>> I should be receiving my WS too hopefully it was held by customs  :) 
>>
>> Question, the link you shared with me has prerequisites , which are 
>> straight but there is a link which takes to 
>> https://github.com/matthewwall/weewx-interceptor , so the first step of 
>> prerequisites should be to install weewx interceptor and then follow the 
>> rest in the link, I understand the RPi will sniff data via WiFi and it will 
>> have access to WAN using Ethernet connection, can you also share your 
>> website.
>>
>> Thanks a lot,
>> Adnan
>>
>> On Wednesday, 16 January 2019 01:48:06 UTC+3, Scott Grayban wrote:
>>>
>>> I use this one https://smile.amazon.com/gp/product/B06XWMQ81P/
>>>
>>> SanDisk Extreme 32GB microSDHC UHS-3 Card - SDSQXAF-032G-GN6MA
>>>
>>> On Tuesday, January 15, 2019 at 2:23:52 PM UTC-8, Adnan Mumtaz wrote:

 I am a Debian user , not a very advanced one but i have concepts, I am 
 dowloading the RPi Debian Lite version as I wouldnt need a desktop, what 
 size and brand SD would you recommend

 On Tuesday, 15 January 2019 22:38:12 UTC+3, Scott Grayban wrote:
>
> Sure but you shouldn't have any problems unless you don't know 
> anything about linux.
>
> On Tuesday, January 15, 2019 at 11:35:11 AM UTC-8, Adnan Mumtaz wrote:
>>
>> Thanks a lot, ordered it. Will need your help again if i get stuck in 
>> something. So kind of you.
>>
>> Regards,
>> Adnan
>>
>> On Tuesday, 15 January 2019 22:27:19 UTC+3, Scott Grayban wrote:
>>>
>>> This one 
>>> https://saudi.souq.com/sa-en/raspberry-pi-3-model-b+-plus-32895409/i/
>>>
>>> On Tuesday, January 15, 2019 at 11:09:11 AM UTC-8, Adnan Mumtaz 
>>> wrote:

 Hi Scott,

 Bundle of thanks for sharing your hardwork, will you suggest which 
 RPi should I buy, I can find few available in a local e-store 
 https://saudi.souq.com/sa-en/raspberry-pi/s/?as=1

 Regards,
 Adnan

 On Tuesday, 15 January 2019 21:37:41 UTC+3, Scott Grayban wrote:
>
> You also need to buy a Rpi from amazon or the UK Rpi store for 
> this to work. https://www.raspberrypi.org/
>
>
> On Tuesday, January 15, 2019 at 10:14:38 AM UTC-8, Adnan Mumtaz 
> wrote:
>>
>> Greetings from Saudi Arabia,
>>
>> I am an expat living and working in Riyadh, Saudi Arabia. I have 
>> recently purchased Ambient Weather WS-2902A which I will be 
>> receiving next 
>> week, I have a domain and web hosting where I want to publish my 
>> weather 
>> using WeeWX (belchertown template). I am a systems engineer but far 
>> from 
>> programming since a very long time, I will appreciate if someone can 
>> guide 
>> me, I did search the forum and found few had issues and those who 
>> had 
>> success are not publishing details.
>>
>> Awaiting positive response .
>>
>> Thank you,
>> Adnan
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Direct reading day rain from the console

2019-01-20 Thread Thomas Keffer
No. The graphics require access to historical data, so must be generated
from the database.

-tk

On Sun, Jan 20, 2019 at 9:02 AM Christian Nimmervoll <
christian.nimmerv...@gmail.com> wrote:

>
> Top! That was a solution that I have been looking for a long time. $
> current.dayRain Now I can also edit rain values ​​on the console and the
> corrections then flow into the software. Is it also possible - with the
> value $ current.dayRain also to correct the rain graphics. So to take the
> corrected value in the chart?
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Adding a new object in the ephem database

2019-01-20 Thread Thomas Keffer
This is the error I got before modifying almanac.py. Make sure you're using
the version of almanac.py you think you are.

I've attached the patched version I'm using.

-tk

On Sun, Jan 20, 2019 at 9:29 AM Paul Bartholdi 
wrote:

> Dear Thommas,
>
> Once more you impressed me a lot, such quick and well formed answer.
> Thanks.
>
> Now I am afraid to say that there is still a buf, probably a typo or some
> thing like that. I checked "my" additions in "extensions.py" and
> "almanac.py" (and of course in "index.html.tmpl"), and believe they were
> correctly done.
> Just a question: where can I find the generated file
> "cheetah__etc_weewx_skins_Standard_index_html_tmpl_1548001524_26_16364.py" ?
>
> Here is the .log of the error:
>
> reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf
> for report StandardReport
> cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac',
> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
> 'weewx.cheetahgenerator.Extras']
> manager: Daily summary version is 2.0
> cheetahgenerator: Generate failed with exception ' 'exceptions.TypeError'>'
> cheetahgenerator:  Ignoring template
> /etc/weewx/skins/Standard/index.html.tmpl
> cheetahgenerator:  Reason: 'ephem.EllipticalBody' object is not
> callable
>   Traceback (most recent call last):
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in
> generate
>   print >> _file, compiled_template
> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
> 1005, in __str__
>   rc = getattr(self, mainMethName)()
> File
> "cheetah__etc_weewx_skins_Standard_index_html_tmpl_1548001524_26_16364.py",
> line 2545, in respond
> File
> "cheetah__etc_weewx_skins_Standard_index_html_tmpl_1548001524_26_16364.py",
> line 1155, in __errorCatcher156
> File "", line 1, in 
> File "/usr/share/weewx/weewx/almanac.py", line 355, in __getattr__
>   ephem_body = _get_ephem_body(self.heavenly_body)
> File "/usr/share/weewx/weewx/almanac.py", line 424, in
> _get_ephem_body
>   ephem_body = getattr(ephem, cap_name)()
>   TypeError: 'ephem.EllipticalBody' object is not callable
> cheetahgenerator: Generated 13 files for report StandardReport in 0.56
> seconds
> manager: Daily summary version is 2.0
>
> Best regards, Paul
>
>
> Le dim. 20 janv. 2019 à 01:28, Thomas Keffer  a écrit :
>
>> This is a good question, and it took me a while to figure out how to work
>> around the limitations of pyephem. Try this:
>>
>> 1. Put the following in user/extensions.py:
>>
>> import ephem
>> eros = ephem.readdb("433
>> Eros,e,10.8276,304.3222,178.8165,1.457940,0.5598795,0.22258902,71.2803,09/04.0/2017,2000,H11.16,0.46")
>> ephem.Eros = eros
>>
>> 2. Modify the WeeWX module weewx/almanac.py so that the function
>> _get_ephem_body() looks like this:
>>
>> def _get_ephem_body(heavenly_body):
>> # The library 'ephem' refers to heavenly bodies using a capitalized
>> # name. For example, the module used for 'mars' is 'ephem.Mars'.
>> cap_name = heavenly_body.capitalize()
>>
>> # If the heavenly body is a star, or if the body does not exist, then
>> an
>> # exception will be raised. Be prepared to catch it.
>> try:
>> ephem_body = getattr(ephem, cap_name)()
>> except AttributeError:
>> # That didn't work. Try a star. If this doesn't work either,
>> # then a KeyError exception will be raised.
>> ephem_body = ephem.star(cap_name)
>> except TypeError:
>> ephem_body = getattr(ephem, cap_name)
>>
>> return ephem_body
>>
>> You are adding the two highlighted lines.
>>
>> 3. Then use this in your template:
>>
>> $almanac.eros.rise
>>
>> for when it rises, etc. (treat it just like any other planet).
>>
>> Double check the answer. I'm not 100% confident this will work. If it
>> does, I'll add the changes for weewx/almanac.py to the code base.
>>
>> -tk
>>
>> On Sat, Jan 19, 2019 at 10:20 AM Paul Bartholdi 
>> wrote:
>>
>>> Hi,
>>>
>>> I nodified a few years ago the "Standard/index.html.tmpl" to print the
>>> main solar systems objects (sun, moon, Jupiter...).
>>> Now I want to pint the same informations but for the minor planet Eros
>>> that pass very (very relative!) the earth in the few next days.
>>> This implies adding the python line:
>>>
>>>  eros = ephem.readdb("433
>>> Eros,e,10.8276,304.3222,178.8165,1.457940,0.5598795,0.22258902,71.2803,09/04.0/2017,2000,H11.16,0.46")
>>>
>>> and then (in index.html.tmp) :
>>>
>>>
>>>   Rise  :
>>>   $almanac.eros.rise
>>> 
>>>
>>> Where should I add the " eros = ephem.readdb(...) line ?   (
>>> index.html.tmpl ?  almanac.py ? elsewhere ?).
>>>
>>> Thanks for any help/advice! Paul
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the 

Re: [weewx-user] Direct reading day rain from the console

2019-01-20 Thread Christian Nimmervoll
OK.
Thanks for the info. 
Chris

Am Montag, 21. Januar 2019 02:58:14 UTC+1 schrieb Thomas Keffer:
>
> No. The graphics require access to historical data, so must be generated 
> from the database.
>
> -tk
>
> On Sun, Jan 20, 2019 at 9:02 AM Christian Nimmervoll <
> christian@gmail.com > wrote:
>
>>
>> Top! That was a solution that I have been looking for a long time. $ 
>> current.dayRain Now I can also edit rain values ​​on the console and the 
>> corrections then flow into the software. Is it also possible - with the 
>> value $ current.dayRain also to correct the rain graphics. So to take the 
>> corrected value in the chart? 
>> Chris
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.