Giter Club home page Giter Club logo

Comments (3)

rheikvaneyck avatar rheikvaneyck commented on September 4, 2024

Hi Niko,

Thank you for your feedback! I'm glad to hear that.

The script rnexus in the bin/ folder is just a alternative starter for the
rake command ('rake web:run'), actually. I developed the web-app on the
raspberry and tested the server manually. After that, I chose heroku.com as
a hoster for the app ( http://polar-stream-6897.herokuapp.com/ ) because it
is quite easy to get a web-app running there. I added some code to load the
data into the heroku database ( script/HerokuLoader ). In that
configuration the raspberry collects the data and uploads it to heroku,
rather then visualize it by itself.It should add a description, how I did
that heroku stuff.

But nevertheless, you're absolutely right. It should be easy to build the
starter script. I'll do that within the next days :-)
And an installer and uninstaller would be helpful too.

Best regards,

Marcus

2014-01-25 Nikolaus Krismer [email protected]

Hi,

I read about rnexus in the raspberry pi geek magazin (05.2013).
This really raised my interest in the project, so I had to get an tfa
nexus and a raspberry pi. Today I installed the nexus and your software on
my newly bought raspberry...
... although I am not that familiar with ruby (I usually work with java
and javascript) it all works great.

THANKS for your great work... it would have taken me much more time to get
some weather data into my local network without your tool. [image: 👍]

There is only one question left:
Is there something like an init script (which calls "ruby bin/rnexus" in
the source directory) that can be copied to /etc/init.d? By now I use a
screen terminal, so that the server keeps running when closing my SSH
session, but this doesn't work after a system restart.

Would it be hard to create such an init script? Or is there an existing
solution (which I could not find, so maybe it should be documented...)

Kind regards (and thanks again),
Niko


Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

from rnexus.

nikolauskrismer avatar nikolauskrismer commented on September 4, 2024

Hmm... I have to take a look at heroku... looks very interesting
I do realized that there are some problems with the webapp (all my temperature values are zero, although the values in the sqlite db are correct, time values are not correctly positioned on x-axis (seems like a timezone problem. since my timezone is vienna and values are off by one hour), but maybe heroku can help me out here.

If I find the time I will fix these things myself and send you a pr. (maybe the problems are related to my ruby version which is 2.2.0-dev)

from rnexus.

rheikvaneyck avatar rheikvaneyck commented on September 4, 2024

I think your ruby version is not the issue. If the temperature values are all zero, check the column-names in web/controllers/web_dash_controller.rb lines 8 and 9. I used constants to point on the channel on which a sensor is connected. I'm going to change this and probe the last measurement. The first sensor delivering data would be used for the plot. What do you think?

Your other issue with the timezone is a good question. I expect the the behavior you observed: time values are in UTC, so -1h off to Vienna. Though, I'm in the same time zone as you are (Berlin), I've got correct time values. My weather station delivers the time data in my local time zone in seconds (unixtime). This should be UTC, but as they're correct for me I didn't care.

I'll open three issues:

  1. probe active sensor
  2. figure out timezone
  3. create init script

from rnexus.

Related Issues (8)

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.