$message .= "東京電力電力使用率:" . floor($Power["Tokyo"]["den_per"]) . "% \n";
            if ($Power["Tokyo"]["den_per"] >= 90) {
                $message .= $setsuden;
            } else {
                $message .= $kansya;
            }
        }
    }
    $message .= "#" . $SHARP;
    return $message;
}
//-----------------------------------------------------------------------------------
$TT = new Twitter_Class();
$DD = new Denryoku_Class();
$WW = new Weather_Class();
$wg = $WW->wunderground();
$power_company = array("Hokkaido", "Tohoku", "Tokyo", "Chubu", "Hokuriku", "Kansai", "Chugoku", "Shikoku", "Kyushu", "Okinawa");
$PP = $DD->StoreDenryoku();
for ($i = 0; $i < 10; $i++) {
    $Power[$power_company[$i]] = $PP[$power_company[$i]];
}
if ($wg == NULL) {
    echo "ERROR";
    exit;
}
$message = file_write();
//-------------------------------------------------------------------
$status = $message;
if (strstr($PLACE_NAME, "宮城県") || strstr($PLACE_NAME, "新潟県") || strstr($PLACE_NAME, "青森県")) {
    $image["Denryoku"] = $graph["Tohoku"];
} elseif (strstr($PLACE_NAME, "京都府") || strstr($PLACE_NAME, "奈良県") || strstr($PLACE_NAME, "兵庫県") || strstr($PLACE_NAME, "大阪府")) {