mix nerves_hub.firmware publish --key fwsigner1 mix nerves_hub.deployment update qa firmware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Barometer do | |
alias ElixirALE.I2C | |
@sealevel_pa 101325 | |
@doc """ | |
Put the BMP280 in normal mode and sample the temperature and | |
pressure sensor at ultra high resolution. | |
""" | |
def enable() do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./jq-linux64 -n \ | |
--arg meta_uuid $(grep 'meta-uuid' <<< $FW_META | awk -F"=" '{ print $2}') \ | |
--arg meta_version "$(grep 'meta-version' <<< $FW_META | awk -F"=" '{ print $2}')" \ | |
--arg meta_vcs_identifier "$(grep 'meta-vcs-identifier' <<< $FW_META | awk -F"=" '{ print $2}')" \ | |
--arg meta_platform "$(grep 'meta-platform' <<< $FW_META | awk -F"=" '{ print $2}')" \ | |
--arg meta_creation_date "$(grep 'meta-creation-date' <<< $FW_META | awk -F"=" '{ print $2}')" \ | |
--arg meta_misc "$(grep 'meta-misc' <<< $FW_META | awk -F"=" '{ print $2}')" \ | |
'{channel: "C41SHHGQ5", as_user: true, blocks: [ | |
{type: "section", block_id: "text1", text: {type: "mrkdwn", text: "*A new FarmBot Firmware is available*"}}, | |
{type: "context", elements: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
/* | |
Experiment with the lgamma function. This function makes it possible to approximate | |
factorials of very large numbers and runs incredibly fast. | |
See https://github.com/bminor/musl/blob/master/src/math/lgamma_r.c for how lgamma is | |
calculated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Upload new firmware to a target running nerves_firmware_ssh | |
# | |
# Usage: | |
# upload.sh [destination IP] [Path to .fw file] | |
# | |
# If unspecifed, the destination is nerves.local and the .fw file | |
# is naively guessed |
NewerOlder