Fix trailing spaces

This commit is contained in:
Tyler Perkins 2022-01-28 17:33:24 -05:00
parent fed9d23ed8
commit 4e513a86d8
5 changed files with 28 additions and 29 deletions

View File

@ -16,7 +16,7 @@ int main(int argc, char** argv){
dashboard::board _board(false);
if(_board.init() != 0){
std::cerr << "Due to errors, " << argv[0]
std::cerr << "Due to errors, " << argv[0]
<< " was unable to start, quitting!" << std::endl;
return -1;
}

View File

@ -62,7 +62,7 @@ void homeassistant::draw(){
}
//check if its time to update
if((std::chrono::high_resolution_clock::now() - _last_update)
if((std::chrono::high_resolution_clock::now() - _last_update)
> _update_interval){
update();

View File

@ -50,7 +50,7 @@ void plex::draw(){
}
//check if its time to update
if((std::chrono::high_resolution_clock::now() - _last_update)
if((std::chrono::high_resolution_clock::now() - _last_update)
> _update_interval){
update();
@ -84,13 +84,13 @@ void plex::update(){
for(short i = 0; i < 4; ++i){
entries.at(i) = {
truncate(curr_entry[i]["friendly_name"].GetString(),
truncate(curr_entry[i]["friendly_name"].GetString(),
PLEX_MAX_STRING_LENGTH),
truncate(curr_entry[i]["ip_address"].GetString(),
truncate(curr_entry[i]["ip_address"].GetString(),
PLEX_MAX_STRING_LENGTH),
truncate(curr_entry[i]["title"].GetString(),
truncate(curr_entry[i]["title"].GetString(),
PLEX_MAX_STRING_LENGTH),
truncate(curr_entry[i]["state"].IsNull() ? "Historical" : "Playing",
truncate(curr_entry[i]["state"].IsNull() ? "Historical" : "Playing",
PLEX_MAX_STRING_LENGTH),
};

View File

@ -13,7 +13,7 @@ namespace dashboard::panel {
//string to not show anything
constexpr char PLEX_TITLE[] = "Plex";
//Tautili endpoint
//Tautili endpoint
constexpr char PLEX_URL_SOURCE_HISTORY[] = "http://192.168.1.104:8181/api/v2?apikey=62917cc0bea04aa69cbb85141e312e84&cmd=get_history&length=5";
constexpr char PLEX_URL_SOURCE_NAME[] = "http://192.168.1.104:8181/api/v2?apikey=62917cc0bea04aa69cbb85141e312e84&cmd=get_server_friendly_name";
constexpr char PLEX_URL_SOURCE_TOP_USERS[] = "http://192.168.1.104:8181/api/v2?apikey=62917cc0bea04aa69cbb85141e312e84&cmd=get_plays_by_top_10_users";
@ -34,5 +34,4 @@ namespace dashboard::panel {
constexpr uint8_t PLEX_BGBOX_GREEN = 0x66;
constexpr uint8_t PLEX_BGBOX_BLUE = 0x66;
constexpr uint8_t PLEX_BGBOX_ALPHA = 0x99;
}

View File

@ -36,57 +36,57 @@ namespace dashboard::panel {
//with weather string being the string shown on screen, and weather image
//being the name of the preloaded image file to be shown. It is best that
//these images be square.
const std::pair<std::string, std::string> WEATHER_CLEAR_DAY =
const std::pair<std::string, std::string> WEATHER_CLEAR_DAY =
{"Clear skies", "clearday.png"};
const std::pair<std::string, std::string> WEATHER_CLEAR_NIGHT =
const std::pair<std::string, std::string> WEATHER_CLEAR_NIGHT =
{"Clear skies", "clearnight.png"};
const std::pair<std::string, std::string> WEATHER_PCLOUDY_DAY =
const std::pair<std::string, std::string> WEATHER_PCLOUDY_DAY =
{"Slightly cloudy", "cloudyday.png"};
const std::pair<std::string, std::string> WEATHER_PCLOUDY_NIGHT =
const std::pair<std::string, std::string> WEATHER_PCLOUDY_NIGHT =
{"Slightly cloudy", "cloudynight.png"};
const std::pair<std::string, std::string> WEATHER_MCLOUDY_DAY =
const std::pair<std::string, std::string> WEATHER_MCLOUDY_DAY =
{"Moderately cloudy", "cloudyday.png"};
const std::pair<std::string, std::string> WEATHER_MCLOUDY_NIGHT =
const std::pair<std::string, std::string> WEATHER_MCLOUDY_NIGHT =
{"Moderately cloudy", "cloudynight.png"};
const std::pair<std::string, std::string> WEATHER_CLOUDY_DAY =
const std::pair<std::string, std::string> WEATHER_CLOUDY_DAY =
{"Very cloudy", "cloudyday.png"};
const std::pair<std::string, std::string> WEATHER_CLOUDY_NIGHT =
const std::pair<std::string, std::string> WEATHER_CLOUDY_NIGHT =
{"Very cloudy", "cloudynight.png"};
const std::pair<std::string, std::string> WEATHER_HUMID_DAY =
const std::pair<std::string, std::string> WEATHER_HUMID_DAY =
{"Very humid", "humidday.png"};
const std::pair<std::string, std::string> WEATHER_HUMID_NIGHT =
const std::pair<std::string, std::string> WEATHER_HUMID_NIGHT =
{"Very humid", "humidnight.png"};
const std::pair<std::string, std::string> WEATHER_LRAIN_DAY =
const std::pair<std::string, std::string> WEATHER_LRAIN_DAY =
{"Light rain", "lrainday.png"};
const std::pair<std::string, std::string> WEATHER_LRAIN_NIGHT =
const std::pair<std::string, std::string> WEATHER_LRAIN_NIGHT =
{"Light rain", "lrainnight.png"};
const std::pair<std::string, std::string> WEATHER_RAIN_DAY =
const std::pair<std::string, std::string> WEATHER_RAIN_DAY =
{"Rain", "rainday.png"};
const std::pair<std::string, std::string> WEATHER_RAIN_NIGHT =
const std::pair<std::string, std::string> WEATHER_RAIN_NIGHT =
{"Rain", "rainnight.png"};
const std::pair<std::string, std::string> WEATHER_OSHOWER_DAY =
const std::pair<std::string, std::string> WEATHER_OSHOWER_DAY =
{"Overcast with showers", "shower.png"};
const std::pair<std::string, std::string> WEATHER_OSHOWER_NIGHT =
const std::pair<std::string, std::string> WEATHER_OSHOWER_NIGHT =
{"Overcast with showers", "shower.png"};
const std::pair<std::string, std::string> WEATHER_ISHOWER_DAY =
const std::pair<std::string, std::string> WEATHER_ISHOWER_DAY =
{"Moderate showers", "shower.png"};
const std::pair<std::string, std::string> WEATHER_ISHOWER_NIGHT =
const std::pair<std::string, std::string> WEATHER_ISHOWER_NIGHT =
{"Moderate showers", "shower.png"};
const std::pair<std::string, std::string> WEATHER_LSNOW_DAY =
const std::pair<std::string, std::string> WEATHER_LSNOW_DAY =
{"Light snow", "snowday.png"};
const std::pair<std::string, std::string> WEATHER_LSNOW_NIGHT =
{"Light snow", "snownight.png"};
const std::pair<std::string, std::string> WEATHER_SNOW_DAY =
const std::pair<std::string, std::string> WEATHER_SNOW_DAY =
{"Moderate snow", "snowday.png"};
const std::pair<std::string, std::string> WEATHER_SNOW_NIGHT =
{"Moderate snow", "snownight.png"};