{ "cells": [ { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "### start to get data PK50201A000002140 from 2021-06-29 12:00:00 to 2021-06-30 00:00:00\n", "# get data from 2021-06-29 12:00:00 to 2021-06-30 00:00:00......... \n", "Server Error, retry 1...... \n", "all data-getting done, bms_count is 0, gps_count is 0, system_count is 0, accum_count is 3 \n", "\n" ] } ], "source": [ "# 获取数据\r\n", "import sys\r\n", "import CONFIGURE.PathSetting as PathSetting\r\n", "sys.path.append(PathSetting.backend_path)\r\n", "import DBManager\r\n", "\r\n", "dbManager = DBManager.DBManager()\r\n", "df_data = dbManager.get_data(sn='PK50201A000002140', start_time='2021-06-29 12:00:00', \r\n", " end_time='2021-06-30 00:00:00', data_groups=['accum'])" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
时间戳SOH未标定时间累计充电电量累计充电能量累计放电电量累计放电能量累计高温充电电量累计高温充电能量
02021-06-29 13:00:59165.01064.955301.91004.552806.70.00.0
12021-06-29 17:06:47150.01064.955301.91004.552806.70.00.0
22021-06-29 23:16:05165.01064.955301.91004.552806.70.00.0
\n", "
" ], "text/plain": [ " 时间戳 SOH未标定时间 累计充电电量 累计充电能量 累计放电电量 累计放电能量 累计高温充电电量 \\\n", "0 2021-06-29 13:00:59 165.0 1064.9 55301.9 1004.5 52806.7 0.0 \n", "1 2021-06-29 17:06:47 150.0 1064.9 55301.9 1004.5 52806.7 0.0 \n", "2 2021-06-29 23:16:05 165.0 1064.9 55301.9 1004.5 52806.7 0.0 \n", "\n", " 累计高温充电能量 \n", "0 0.0 \n", "1 0.0 \n", "2 0.0 " ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df_data['accum']" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "interpreter": { "hash": "82c48fa5b9935b41bc103dff27c1411e7645bc2453983fd386eae73200630fad" }, "kernelspec": { "display_name": "Python 3.7.6 64-bit ('MyQuant': conda)", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.6" }, "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 }