2 ms·
Awesome! Glad you got it:) So for the cronjob part, that only applies to devices assigned to guests, as they can be used without creating an account on wirehub
by rudasn 3y ago
Awesome! Glad you got it:)
So for the cronjob part, that only applies to devices assigned to guests, as they can be used without creating an account on wirehub.
- Create your invite, Guest Role.
- Assign the Device to that Guest.
- Add an Interface on that Device.
- Preview the network as that Guest (click the eye icon next to their username). Open the URL in a new private window, because you need to:
- Accept the Invite.
- As that Guest, you'll just see the device(s) assigned to you. Click on the config button for any device and right click, copy the Download URL. That should contain the invite_code as well, which is basically the authorization token for that Guest.
Now, on your device, just curl the URL, like so:
```
curl 'https://wirehub.org/wirehub/n/hub-network/device/1/download?invite_code=t8UAJ7WalMme-uNZHT5KVotfU_e1P2He8m3bm3VEfOV6E8gQFqB1Mdi3Z-yUfyxdzrHZiqIMLWvxABY9yfzBig https://wirehub.org/wirehub/n/hub-network/device/1/download?...'
```