Skip to content

Negative longitude numbers are turned into "true" #130

@claudiuo

Description

@claudiuo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions