GithubHelp home page GithubHelp logo

homebridge-bomgovau's People

Contributors

mitch7391 avatar pcoombe avatar stevecohen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pcoombe

homebridge-bomgovau's Issues

invalid json response body

HomeBridge v1.3.4
homebridge-bomgovau v0.1.3

When using the JSON data linked from here http://www.bom.gov.au/products/IDN60901/IDN60901.94763.shtml

http://www.bom.gov.au/fwo/IDN60901/IDN60901.94763.json

[7/21/2021, 8:32:35 PM] [BOM] Current Time is 1626863555065, BOM data expires at 0
[7/21/2021, 8:32:35 PM] [BOM] Updating observations from BOM.
(node:21723) UnhandledPromiseRejectionWarning: FetchError: invalid json response body at http://www.bom.gov.au/fwo/IDN60901/IDN60901.94763.json reason: Unexpected token < in JSON at position 0
    at /homebridge/node_modules/homebridge-bomgovau/node_modules/node-fetch/lib/index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:21723) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
(node:21723) UnhandledPromiseRejectionWarning: FetchError: invalid json response body at http://www.bom.gov.au/fwo/IDN60901/IDN60901.94763.json reason: Unexpected token < in JSON at position 0
    at /homebridge/node_modules/homebridge-bomgovau/node_modules/node-fetch/lib/index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(node:21723) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)

about the only thing i can see different is theres no press values at that station. but the JSON seems valid.

Error on install

sudo npm install -g homebridge-bomgovau
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git submodule update -q --init --recursive
npm ERR! fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-e7bfccc2': Permission denied
npm ERR!

Station URL Incorrect

Hi Steve
The sample configuration in the readme has the station URL quoted as "stationurl". This results in the Canberra default being used. It should read "stationURL”.
Cheers
Richard

Incorrect Plug-in Identifier

Hi @SteveCohen since the new release of Homebridge I get the following warning in my Homebridge logs upon startup. It says I should contact you to let you know, hopefully you know what needs changing?

B1B09FFB-1308-45F8-A517-70C2C42665D0

Thanks :)

ERROR LOADING PLUGIN homebridge-bomgovau

Hi.
Recently installed this plugin but it's not loading causing the line No plugin was found for the accessory "BOMgovau" in your config.json. Please make sure the corresponding plugin is installed correctly. to show up in the log. Digging a bit deeper the following also appears in the log...

[15/10/2021, 9:39:44 pm] ====================
[15/10/2021, 9:39:44 pm] ERROR LOADING PLUGIN homebridge-bomgovau:
[15/10/2021, 9:39:44 pm] Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /usr/lib/node_modules/homebridge-bomgovau/node_modules/node-fetch/src/index.js
require() of ES modules is not supported.
require() of /usr/lib/node_modules/homebridge-bomgovau/node_modules/node-fetch/src/index.js from /usr/lib/node_modules/homebridge-bomgovau/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename /usr/lib/node_modules/homebridge-bomgovau/node_modules/node-fetch/src/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /usr/lib/node_modules/homebridge-bomgovau/node_modules/node-fetch/package.json.

    at new NodeError (internal/errors.js:322:7)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1102:13)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge-bomgovau/index.js:9:13)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
[15/10/2021, 9:39:44 pm] ====================

Installed versions
Homebridge v1.3.5
Node.js v14.18.0
Npm 6.14.15

Thanks,
Shannon

Use Fakegato

Hey Steve,

Plug-in works great, thanks.

Just one to add to your future enhancement list, adding fakegato support.

Thanks again.

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.