• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Cannot "Applying the Raspberry Pi Template" (Bottom of page 241, smart home section 6.3)

Q&A Forum › Category: Home Automation › Cannot "Applying the Raspberry Pi Template" (Bottom of page 241, smart home section 6.3)
0 Vote Up Vote Down
Liam Woffindin asked 8 months ago

Hi
 
Fixed the config file issue I was having, then went on the the next command and it threw it right back at me. Have I done something fundamentally wrong?
 
I am copy pasting the commands I type and the error codes into a notepad doc, so I can keep track of which command created which error code. Here are the error codes. Copied from the PDF file;
 
influx apply -f https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml
 
Created the error:
 
2024/09/18 11:30:42 WARN: Passing URLs via -f/–file is deprecated, please use -u/–template-url instead
Error: failed to read template(s) from “https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml”: bad response: address=https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml status_code=404 body=”404: Not Found”
 
So I used some initiative and changed the command from -f to -u, as suggested by the error code.
 
influx apply -u https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml
 
Which gave me the error message;
 
Error: failed to read template(s) from “https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml”: bad response: address=https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml status_code=404 body=”404: Not Found”
 
Not sure what I’m doing wrong here, I’ve gone through the entire module 6 twice now and can’t get past these pages.

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

This message is just a note, the command will still run.
ARN: Passing URLs via -f/–file is deprecated, please use -u/–template-url instead

It seems you’re having issues with copy/paste as it cannot find the URL.
Your command is not working because during copy/paste, it ommited a “-“

Use this command isntead:

influx apply -f https://raw.githubusercontent.com/influxdata/community-templates/master/raspberry-pi/raspberry-pi-system.yml

I’m also pasting here the next command in the eBook in case you have problems (you can copy and past everything at once.).

# influxdata-archive_compat.key GPG fingerprint:
#     9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list

sudo apt-get update && sudo apt-get install telegraf

I hope this helps.
Regards.

0 Vote Up Vote Down
Liam Woffindin answered 8 months ago

Your commands do seem to be working but when I tried to setup Telegraf (page 245) I got more error messages (see “error codes” screenshot for more detail
 
“E! [agent] Error writing to outputs.influxdb_v2: failed to send metrics to any configured server(s)”
 
I confirm I have the correct IP address, org name, the API is a brand new one I generated when I tried to just restart the module. I deleted the old one.
 
Installing telegraf seemed to have worked, I used the command you provided and followed the link to get it myself.
 
Here are screenshots of my commands and the responses, they all seem to accept them but when I try to upload data to telegraf, it doesn’t seem to want to know
 
Copied from Telegraf website installer
 
Install notes
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

Hi.
Please double-check the command. The link is wrong.
You have :80864
It should be 8086.
 
Regards,
Sara
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.