-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Negative longitude numbers are turned into "true" #130
Comments
Ah yes, this was reported somewhere else before and as you mentioned a bug On Wed, Mar 12, 2014 at 7:23 PM, claudiuo [email protected] wrote:
Mit freundlichen Grüßen / With kind regards |
That's what I did, I used mosquitto_pub, and was happy to do it since it I will do the docs, thanks a lot for suggesting it. I will have to figure On Wed, Mar 12, 2014 at 2:04 PM, Alexander Rust [email protected]:
|
Is this still something that needs fixing? As it's also already been added to the docs. I found this commit from Turfjs/turf-point that was done to address the same issue, maybe it can be of help? |
Trying to set the longitude value to a negative number (which is the case in the western hemisphere) I discovered that the value is set to true instead of the real value. So this:
publish.js -t "/sys/294028-solar/longitude" -p "-111.890810" -r
doesn't work. I tried all kinds of combinations until I found this issue: https://github.com/substack/node-optimist/issues/79
Indeed, setting the payload like:
publish.js -t "/sys/294028-solar/longitude" --payload=-111.890810 -r
seems to work.
It is a bug in optimist so not much you can do, I thought maybe you could mention in the docs for solar and weather this issue.
Thanks for all your work, it is really great!
The text was updated successfully, but these errors were encountered: