Giter Site home page Giter Site logo

niagara-weather's Introduction

This is the Niagara module implementing the free 5-days weather report provided by Openweathermap. The module implements Niagara Weather API and uses standard Niagara icons so you can use it as the direct replacement for the discontinued Weather Underground service.

History
Date Change
9.1.2020 Using HTTPConnection to pass NiagaraProxy
1.4.2019 Module signed with Neopsis certificate
5.2.2019 Initial Release
Usage
  • Get the API key from the openweathemap homepage here.
  • Install the module in your %niagara_home%/modules directory.
  • Add the Niagara WeatherService to your station's services.
  • Add new provider to the WeatherService - from the list of available services select Nv Owm Provider.
  • Add the location as city or city,country_code, for example London,GB

To download the compiled module go to the Releases link.

For developers: you can find the great documentation here

The code is licensed under Apache 2.0 license, see the LICENSE file

Enjoy

niagara-weather's People

Contributors

envas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

niagara-weather's Issues

Niagara 4.12 Support?

"Nv Owm Provider" does not appear in providers list.
Jar file installed in modules folder.
Rebooted PC

[sys.registry] Out-of-date: Module added "envasWeather-rt"

Using ProxyServer

Hi,

I encountered the problem, that this module does not work with Niagara Proxy. I have to use it here with httpProxyService from net-rt module.
In your code you use HttpURLConnection, but if the stream should go through Niagara ProxyService it has to be used javax.baja.net.HttpConnection. Is it elaborately to change this?

Thanks in advance!
OVH

WeatherService silently stops updating on N4 JACEs

The issue described below may not be a problem with the OpenWeatherMap provider itself, but Niagara Community user 'roc' suggested I record the issue here too.

Note: The issue was observed using the 4.0.1 release of this module.

I think the idea would be to add optional extras to the OWM provider that:

  • Output a log message whenever it is called by the WeatherService (so we can see when it stops)
  • Can output a log message when the OWN provider has not had a request to update from the WeatherProvider for longer than expected

Anyway, the issue description as posted on Niagara Community:

_We're getting occasional problems with the WeatherService on some of our JACE 8000s.

We are in the UK and using the OpenWeatherMap Provider kindly provided as open source by Neopsis: https://github.com/neopsis/niagara-weather

I've just been examining the issue on a JACE running N4.7.109.20.

What I see is that the WeatherService stops updating automatically, and using the UpdateWeatherReport action either at the service or report level does not update it either. There are no messages in the Application Director other than the regular station saves and NTP time sync updates.

I tried creating another report under the existing WeatherService, but that would not update either.

I tried disabling and re-enabling the WeatherService, but that did not help.

I tried duplicating the WeatherService to create a WeatherService1. The report within this was then able to update.

My guess is that there is some background thread or timer created when the WeatherService is created during station start-up or on creating a new entry under Services when a station is already running. This has silently died and neither automatic or manual updates occur any more. This is not removed and recreated when you disable and then re-enable the WeatherService, so doing that does not fix the issue.

The best workaround I have found is to 'cut' the WeatherService and 'paste' it back in the same location in the Services folder, then renaming it back from WeatherService1 to WeatherService. Getting it running again this way preserves any links in/out of the WeatherService (e.g. we use the current external temperature from the WeatherService in an average of the site's OAT sensor readings).

Can anyone shed any further light on what's going on and why there are no Application Director messages about failures to update?

Perhaps as a first step towards resolving this sort of issue Tridium can think about updating the WeatherService so the disabling and re-enabling the WeatherService would recreate this background thread/timer too?_

Choose unit Format

Hi there,

First of all, I just registered to GitHub, so please do not blame me, if I do something wrong here. But I think I should use "Issues" for that point.

I have seen you hardcoded the unit-format into imperial. I think it would be nice to choose between metric and imperial.

Is it possible for a future release? Thanks so far!
ovhelemann

String link = "http://api.openweathermap.org/data/2.5/forecast?q=" + location + "&mode=json&units=imperial&appid="

Niagara N4.12

Hello
I put the last jar file in module folder and restart platform
I open the station but the palette is not present
image
In tool info module envasweather is present
image
In detail module i have this
image

This module is compatible with Niagara 4.12?
Can you help me please?
Thanks

Unable to configure

Hi,
I am using EC-Net 4 from Distech.
I was able to select the new provider (Open Weather Map Service), but when trying to configure it, I'm unable to write in the fields (Location, Api Key, Fault Cause).
Everything I type is not showing in the fields.

Any idea?
Capture

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.