[weewx-user] Re: getting openweathermap station_id

2017-08-17 Thread john hutchison
I fixed it. Was using the publish url from the syslog 
http://api.openweathermap.org/data/3.0/measurements?appid=


instead of the registration url
http://api.openweathermap.org/data/3.0/stations?appid=


-- 
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: getting openweathermap station_id

2017-08-17 Thread john hutchison
Chotechai Piyavongsiri, 

I get the following message when using postman:

{
> "code": 41,
> "message": "unmarshal type error: 
> expected=[]types.MeasurementRequest, got=object, offset=1"
> }
>
>
>
Other than my appid and body, your screenshots match my postman entries.

Here is my body entry:

{
> "external_id": "ktxlames3",
> "name": "Lamesa, Texas",
> "latitude": 32.742908,
> "longitude": -101.965671,
> "altitude": 3004
> }
>

I have tried upper and lowercase external_id, AGL and ASL for the altitude, 
and making the longitude positive (just to see), and it still returns the 
above error and more specifically "Error 400 Bad Request - the request 
cannot be fufilled due to bad syntax.
The only difference is my header doesn't match yours although it is 
Content-type - application/json:

access-control-allow-credentials →true
access-control-allow-methods →GET, POST
access-control-allow-origin →*
connection →keep-alive
content-length →107
content-type →application/json; charset=utf-8
date →Fri, 18 Aug 2017 02:38:16 GMT
server →openresty


-- 
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: Current Windspeed in Beaufort ? Bft?

2017-08-17 Thread gjr80
Hi,

At the moment the weeWX tag system 
 does not support Beaufort wind 
speeds. WeeWX has a function in bin/weewx/wxformaulas.py to calculate 
Beaufort wind speed but it is not used. You have seen Beaufort mentioned in 
the change log, Beaufort was added to the StdWXCalculate service but it is 
presently disabled; I am not sure why this is so - Matthew maybe able to 
answer that one.

So the only way to include Beaufort wind speed in a template now is through 
in-line python code in the template (example in the gauge-data.txt template 
here 

 
- code starts at line 170) or create a search list extension to calculate 
the Beaufort wind speed - this could use the beaufort() function in 
wxformuals.py. In theory, you could enable beaufort in StdWXCalculate and 
would then have access to the $current.beaufort tag in reports, but as I 
said I am not sure why this was disabled. Finally, you can do as you and 
others have and calculate it externally to weeWX if its to be used on a web 
page or elsewhere.

Gary

On Friday, 18 August 2017 07:32:52 UTC+10, wysiwyg wrote:
>
> Hi there!
>
> I have seen  some mentions about beaufort in version logs and bit in the 
> weewx code, but I was not able to figure out how to use it ?
>
> I tried:  $current.beaufortthis works (it does not crash cheetah) but 
> weird result:$current.beaufort=?'beaufort'?
>
> I tried: month.beaufort.max: it does crash cheetah.
>
> How can we use this ?
>
> Best regards,
>
>   
>

-- 
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: Current Windspeed in Beaufort ? Bft?

2017-08-17 Thread wysiwyg
Hi there!

I have seen  some mentions about beaufort in version logs and bit in the 
weewx code, but I was not able to figure out how to use it ?

I tried:  $current.beaufortthis works (it does not crash cheetah) but 
weird result:$current.beaufort=?'beaufort'?

I tried: month.beaufort.max: it does crash cheetah.

How can we use this ?

Best regards,

  

-- 
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: weewx - weewx-influx - grafana

2017-08-17 Thread 'Christian Peters' via weewx-user
Hi,

a good starting point:

http://foxutech.com/setup-influxdb-grafana-and-telegraf-on-ubuntu/

or 

https://www.circuits.dk/install-grafana-influxdb-raspberry/

Install InfluxDB on your linux computer, 

https://portal.influxdata.com/downloads

Usually nothing to configure (check install with 'influx', see links.

Install Garfana (see links or website) 

https://grafana.com/grafana/download

install weewx-influx, my minimal configuration in weewx.conf (you have to 
modify to your needs):

[[Influx]]
host = localhost
database = weewx_metrics
port = 8086
unit_system = METRICWX

You don't have to create a database in InfluxDB,  the plugin will do it for 
you, I chose 'weewx_metrics'. You don't need a password so it's problematic 
to share the dashboard in www?

In Grafana you have to add the Influxdb as data source:

1.) The top left Menu (icon of Spiral)
2.) Data Sources
3.) + Add data source
4.) Fill out:
a.) Name: InfluxDB
b.) Type: InfluxDB
c.) (HTTP Settings) Url: http://10.0.0.20:8086 (or in my case 
http://localhost:8086)
d.) (InfluxDB Settings) Database: weewx_metrics
5.) Click “Save & Test” — it will save and work

In Grafana you now can design your own graphs as I did, I installed the D3 
Gauge plugin for the radial gauges. 

I append a screenshot from the temp graph to have an idea. 

You have to play with it a littel bit,  I started with and additional 
installation of telegraf and loaded a ready-to-go dashboard to monitor my 
linux server:

https://grafana.com/dashboards/914

Have fun! 

Sorry, very rough informations. If I can help I will trybut I'm not a 
specialist


Regards,

Christian

Btw.: There is an alpha testing on the way for using MYSQL as data input in 
Grafana...so maybe there wile be a possibility to get the data direct from 
the weewx mysql database in the future (without InfuxDB)!? 

I can share my testing panel as starting point





Am Mittwoch, 16. August 2017 23:31:59 UTC+2 schrieb Christian Peters:
>
> Hi all, 
>
> thanks for weewx and mwall for the quick fix and his great InluxDB plugin. 
>
> Here is my quick and dirty grafana weewx test page.
>
> Not really a replacement for a skin but a really nice addition to explore 
> and display 
> wheather data of your weewx station. As the time range of the data which 
> should be displayed is free to set you can 
> display all time ranges you want (yesterday, two weeks, last two month, 
> last six hours etc,). 
>
> Really niceand easy to push custom data into InfluxDB (e.g. by 
> telegraf and exec input plugin). 
>
>
> Regards,
>
> Christian 
>

-- 
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: csv without headers (new user)

2017-08-17 Thread Mario González
Thanks, I will try it. I have not tried nothing these days because I was 
posting in WU and also I am looking into the sqlite databease management 
(in which I am a complete newbie) to get an internal site to download the 
data. 

El jueves, 17 de agosto de 2017, 9:46:15 (UTC-5), john hutchison escribió:
>
> In order for me to get it working, I had to set it to true and overwrite, 
> delete the file and restart weewx. The documentation states that true is 
> default but that wasn't the case in my experience. When it created the file 
> again it had the headers. I let it go for a couple archive intervals before 
> changing it to false and append and it worked fine and left the headers at 
> the top row.
>

-- 
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: csv without headers (new user)

2017-08-17 Thread john hutchison
In order for me to get it working, I had to set it to true and overwrite, 
delete the file and restart weewx. The documentation states that true is 
default but that wasn't the case in my experience. When it created the file 
again it had the headers. I let it go for a couple archive intervals before 
changing it to false and append and it worked fine and left the headers at 
the top row.

-- 
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: weewx - weewx-influx - grafana

2017-08-17 Thread vince
On Wednesday, August 16, 2017 at 2:31:59 PM UTC-7, Christian Peters wrote:

> Here is my quick and dirty grafana weewx test page.
> Really niceand easy to push custom data into InfluxDB (e.g. by 
> telegraf and exec input plugin). 
>
>
oo - nice

I'd be very interested in how to set up something like that if you have 
time to document stuff and/or stick some repo(s) up on github or the 
like 

-- 
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: WMR300 driver - deleting history and other misc changes.

2017-08-17 Thread Cameron D
Hi  Miguel,
That's great to hear,

thanks for testing it.


On Thursday, 17 August 2017 15:43:56 UTC+10, Miguel Iniesta wrote:
>
> Hi Cameron,
>
> It is working on Debian 9.
> Great job.
>
> Thank you very much.
>
> On Tuesday, August 1, 2017 at 2:20:02 AM UTC+2, Cameron D wrote:
>>
>> Hi Miguel,
>> sorry for the delay in responding.
>> I have managed to install a VM with that version of Ubuntu on, but still 
>> lack the time to investigate further 
>> Maybe later this month.
>> I do not recognise the versioning of python-usb - if it corresponds to 
>> 1.0.0-beta-2 (2014) then that might explain the missing functionality.
>> From the dates in the changelog of 1.0.0~b2-2 it must have been put 
>> together from the beta source and never updated when the final 1.0.0 was 
>> released in 2016.
>> Is there any chance you could update python-usb to the released code?
>>
>> Cameron.
>>
>>
>>

-- 
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: weewx - weewx-influx - grafana

2017-08-17 Thread Yves Martin
Great design! Where can we get this?

YMartin.com/meteo


Le mercredi 16 août 2017 17:31:59 UTC-4, Christian Peters a écrit :
>
> Hi all, 
>
> thanks for weewx and mwall for the quick fix and his great InluxDB plugin. 
>
> Here is my quick and dirty grafana weewx test page.
>
> Not really a replacement for a skin but a really nice addition to explore 
> and display 
> wheather data of your weewx station. As the time range of the data which 
> should be displayed is free to set you can 
> display all time ranges you want (yesterday, two weeks, last two month, 
> last six hours etc,). 
>
> Really niceand easy to push custom data into InfluxDB (e.g. by 
> telegraf and exec input plugin). 
>
>
> Regards,
>
> Christian 
>

-- 
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: OWFS : why does it not implement closePort() ?

2017-08-17 Thread Neil Trimboy
Thanks, I was finding I was having to call that manually, trying to get my 
hub functional.

Is OWFS on git anywhere so I can fork it, cant find under your name ? thanks

On Tuesday, 15 August 2017 23:44:45 UTC+12, mwall wrote:
>
> On Monday, August 7, 2017 at 8:06:29 AM UTC-4, Neil Trimboy wrote:
>>
>> Curious why OWFS does not implement closePort() ?
>>
>> I'm thinking it should maybe call
>> ow.finish()
>>
>
> fixed in owfs v0.21
>
> call to ow.finish() in the driver closePort, call to ow.finish() in the 
> service shutDown
>
> btw, ow.finish just calls the lock housekeeping in owlib
>
>

-- 
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.