npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cooking-with-node

v1.0.0

Published

App to show wireless meat thermometer data

Downloads

7

Readme

CookingWithNode

Node micro-app to display wireless meat thermometer data. It runs as a backend Node.js application with the UI accessed from a browser or phone as shown below.

It currently works with the base from this meat thermometer:

MeatThermometer1

using this project: PI433WirelessRecvManager or this less expensive project Mqtt433Bridge.

You can get these for around $15-20 from Amazon and ebay. I've tested ones that look like the picture (silver or black) from 4 different vendors and they all work so it seems like they all use the same electronics.

The micro-app starts with a blank page indicating that it is listening for probes:

ListeningForProbes

Once you turn on the probe it will show up in the display:

CookingWithNodeProbe1PC

The micro-app supports multiple probes, so as you turn on addiitonal probes the display for each additional probe will show up under the previous probes. It is possible that the probe base will chose the same probe id an existing one, in which case you'll need to turn it off for 10-20 seconds and turn it back on. Most likely the base will pick another id. I've started up to 4 probes at the same time and yet to have a colision.

Using this project micro-app-cordova-launcher you can build a native application for your phone which displays nicely as well:

ListeningForProbes

CookingWithNodeProbe1PC

The UI allows you to select the meat that you are cooking as well as the target "doneness" depending on the meat.

NOTE: this application is to be used only as a convenience in addtion to the original display. Always validate that your meat has reached the required target temperature with the original meat thermometer display before serving.

As the meat cooks the display will update, showing the current temperature as reported by the probe, as well as a graph of the cook so far.

For example, in this cook I selected pork, with a target of medium for "doneness" and probe 44 shows that the target temperature is 160 degress Farenheit. The current probe temperature is 96 degress Farenheit and you can see the graph of the cook progression in the lower right hand corner.

CookingWithNodeProbe1PC

You can change between showing temperatures in Celcius and Farenheit by selecting the 'C' or 'F' buttons.

Once the cook progresses and is "warn" degrees (~10 degrees Farenheit by default) from the target temperature, the probe will change to the warning color, and if you have configured sms notificaitons an sms text will be sent to your phone.

In addition, the configured "warn" message wil start playing. You can silence the warning message by clicking the "mute" button.

CookingWithNodeProbe1PC

This process is repeated as the probe reaches the target temperature, with the probe changing to the target temperature coloar and another sms message being sent if so configured. In addition, the configured "target" message will start playing. You can silence the target message by clicking the "mute" button.

CookingWithNodeProbe1PC

Once complete and you turn off the probe, the probe will drop off the display after a few minutes and if it was the last probe the display will go back to displaying the original waiting for probes messsage.

The server requires Node along with the modules defined in the package.json file to be installed.

It also requires:

  • an mqtt server
  • A meat thremometer pushlishing temps through mqtt (for example, using the PI433WirelessRecvManager described above)
  • twillio account or voip.ms account if you want SMS notifications

Configuration

Most configuration is done in the config.json file in the lib directory which supports the following options:

  • title - title used to name the page for the app.

  • serverPort - port on which micro-app is listening for connections.

  • windowSize - size of the UI for the micro-app.

  • mqtt - object with serverUrl, rootTopic.

  • cleanupInternval - number of seconds after the last mesage from a probe that we will decide the probe was turned off and drop it from the display.

  • scaleC - true for display to default to Celcius, false to default
    to Farenheit. This is optional and the default is true.

  • targetTemps - array with objects for each of the meat/target temperatures. See example below.

  • twilio - object specifying the accountSID, accountAuthToken, fromNumber and toNumber that will be used to send SMS notifications using twilio

  • voipms - object specifying user, password, did and dtsk if using voip.ms to send sms messages.

  • warn - number of degrees Celcius before target temperature to send out warning. This is optional and the default is 5.6 degrees Celcius or about 10 degerees Farenheit.

  • warnSound - This is optional, full path to the mp3 played when the warning temperature is reached.

  • targetSound - This is optional, full path to the mp3 played when the target temperature is reached.

  • skin - This is optional, name of the css file for the UI. This file should be in the lib directory and can be used to modify the colors and/or layout of the probe display.

  • test - Note normally used but useful when customizing display. Adds 2 dummy probes at startup (they will only remain for cleanupInterval seconds).

    As an example:

{
  "title": "Cooking with Node",
  "windowSize": { "x":350, "y":300 },
  "serverPort": 3000,
  "mqtt": { "serverUrl": "mqtt:10.1.1.186:1883",
            "mqttTopic": "house/meat/temp"
           },
  "cleanupInterval": 180,
  "scaleC": false,
  "targetTemps": [
                   { "name": "beef", "temps": [ { "well": 76 },
                             { "medium well": 73 },
                             { "medium": 71 },
                             { "medium rare+": 65.5 },
                             { "medium rare": 62 },
                             { "rare": 60 } ] },
                   { "name": "lamb", "temps": [ { "well": 76 },
                             { "medium well": 73 },
                             { "medium": 71 },
                             { "medium rare": 62 } ] },
                   { "name": "veal", "temps": [ { "well": 76 },
                             { "medium well": 71 } ,
                             { "medium": 62 },
                             { "medium rare": 60 } ] },
                   { "name": "hamburber", "temps": [ { "well": 76 } ] },
                   { "name": "pork", "temps": [ { "well": 79 },
                             { "medium well": 73 },
                             { "medium": 71 } ] },
                   { "name": "turkey", "temps": [ { "well": 79 } ] },
                   { "name": "chicken", "temps": [ { "well": 79 } ] },
                   { "name": "fish", "temps": [ { "well": 58 } ] }
                 ],
  "twilio2": { "accountSID": "",
              "accountAuthToken": "",
              "toNumber": "+" ,
              "fromNumber": "" },
  "voipms": { "user": "",
              "password": "",
              "did": "",
              "dst": "" }
}

Installation

The easiest way to install is to run:

npm install cooking-with-node

or

npm install https://github.com/mhdawson/CookingWithNode.git

and then configure the default config.json file in the lib directory as described in the configuration section above.

Running

Simply cd to the directory where the npm was installed and type:

npm start