with Helium (Console) and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The Helium (Console) API serves as a gateway to the Helium network, a decentralized blockchain network for IoT devices. It enables you to interact with the network by fetching device data, managing hotspots, and tracking sensor activity. With Pipedream, you can automate workflows that respond to this data in real-time. This allows for the creation of complex IoT applications, such as automated alerts, data analysis, and integration with other services for enhanced functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helium: {
type: "app",
app: "helium",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://console.helium.com/api/v1/devices`,
headers: {
"key": `${this.helium.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})