Upload images to Canvia Smart Art Frame via NodeJS
- Install node packages (
npm install
) - Create an
.env
file with the contents of.example.env
(cp .example.env .env
) - Fill out the
.env
file with the following variables:USERNAME
is your https://my.canvia.art usernamePASSWORD
is your https://my.canvia.art passwordPLAYLIST
is your https://my.canvia.art playlist ID
- Run the program with file paths in a comma seperated string of the images to upload as the only parameter (
node index.js path/one.jpg,path/two.jpg
)
I use an Automator Folder Action
to listen for new pictures added to a specific folder.
Once an image is added, it calls this node script to upload, then removes the images when it's done.
- You cannot upload duplicate artwork names (e.g.
italy.jpg
twice), if you do the API will throw a409
error.